diff options
author | Georg Brandl <georg@python.org> | 2013-05-19 11:55:09 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-05-19 11:55:09 +0200 |
commit | 868af24ee48a7ef8373bb762a8b886d7ab7cbe23 (patch) | |
tree | dcd9fa81f4e7f5085db25d2616b554727d3314a4 | |
parent | f76cbda8758b179aba69befc30e62476b47f2ba7 (diff) | |
download | pygments-868af24ee48a7ef8373bb762a8b886d7ab7cbe23.tar.gz |
Closes #854: make the lexer guessing of the SLexer less greedy.
-rw-r--r-- | pygments/lexers/math.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py index f52e85e8..a72a9124 100644 --- a/pygments/lexers/math.py +++ b/pygments/lexers/math.py @@ -1113,7 +1113,8 @@ class SLexer(RegexLexer): } def analyse_text(text): - return '<-' in text + if re.search(r'[a-z0-9_\])\s]<-(?!-)', text): + return 0.11 class BugsLexer(RegexLexer): |