diff options
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/other.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index 4f11f35d..d21f7b30 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -694,13 +694,14 @@ class LogtalkLexer(RegexLexer): def analyse_text(text): if ':- object(' in text: return True - if ':- protocol(' in text: + elif ':- protocol(' in text: return True - if ':- category(' in text: + elif ':- category(' in text: return True - if ':-' in text: - return True - return False + elif re.search('^:-\s[a-z]', text, re.M): + return 0.9 + else: + return False def _shortened(word): |