summaryrefslogtreecommitdiff
path: root/pygments/lexers/actionscript.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/actionscript.py')
-rw-r--r--pygments/lexers/actionscript.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pygments/lexers/actionscript.py b/pygments/lexers/actionscript.py
index e0ef3516..2a085ef7 100644
--- a/pygments/lexers/actionscript.py
+++ b/pygments/lexers/actionscript.py
@@ -110,6 +110,11 @@ class ActionScriptLexer(RegexLexer):
]
}
+ def analyse_text(text):
+ """This is only used to disambiguate between ActionScript and
+ ActionScript3. We return 0 here; the ActionScript3 lexer will match
+ AS3 variable definitions and that will hopefully suffice."""
+ return 0
class ActionScript3Lexer(RegexLexer):
"""