summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/other.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index d21f7b30..37deca6e 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -693,15 +693,15 @@ class LogtalkLexer(RegexLexer):
def analyse_text(text):
if ':- object(' in text:
- return True
+ return 1.0
elif ':- protocol(' in text:
- return True
+ return 1.0
elif ':- category(' in text:
- return True
+ return 1.0
elif re.search('^:-\s[a-z]', text, re.M):
return 0.9
else:
- return False
+ return 0.0
def _shortened(word):