1. Thomas Aglassinger
  2. pygments-mainframe

Commits

Georg Brandl  committed 823fdb9

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

  • Participants
  • Parent commits 470fd52
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/math.py

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