summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-01-16 12:19:47 +0100
committerGeorg Brandl <georg@python.org>2016-01-16 12:19:47 +0100
commitffe2b9cf787343862972b15ac6e4e95f09712034 (patch)
tree0bc1ebd70a871edadf713a98baa4b038d6734faf
parentd32587600eacea392e5a75152d0c4bdb19fe2916 (diff)
downloadpygments-ffe2b9cf787343862972b15ac6e4e95f09712034.tar.gz
Closes #1191: fix overzealous analyse_text for LassoJS lexer.
-rw-r--r--pygments/lexers/templates.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py
index 71055a9f..1f2322cc 100644
--- a/pygments/lexers/templates.py
+++ b/pygments/lexers/templates.py
@@ -1780,8 +1780,6 @@ class LassoJavascriptLexer(DelegatingLexer):
def analyse_text(text):
rv = LassoLexer.analyse_text(text) - 0.05
- if 'function' in text:
- rv += 0.2
return rv