Commits

Georg Brandl  committed 823fdb9

Closes #854: make the lexer guessing of the SLexer less greedy.

  • Participants
  • Parent commits 470fd52

Comments (0)

Files changed (1)

File pygments/lexers/math.py

     }
 
     def analyse_text(text):
-        return '<-' in text
+        if re.search(r'[a-z0-9_\])\s]<-(?!-)', text):
+            return 0.11
 
 
 class BugsLexer(RegexLexer):