diff options
author | thatch <devnull@localhost> | 2008-12-31 12:40:19 -0600 |
---|---|---|
committer | thatch <devnull@localhost> | 2008-12-31 12:40:19 -0600 |
commit | d9e3dda1cb60eda4195327e31cd33db53b89edc9 (patch) | |
tree | e056f6fec4d42755f214a6628232f77c14d3cd6b | |
parent | b0786091e59267af2c2f2845f541398ba4862b21 (diff) | |
download | pygments-d9e3dda1cb60eda4195327e31cd33db53b89edc9.tar.gz |
Initial analyse_text for as,as3
-rw-r--r-- | pygments/lexers/web.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py index d0a113d4..3dfb2de5 100644 --- a/pygments/lexers/web.py +++ b/pygments/lexers/web.py @@ -151,6 +151,9 @@ class ActionScriptLexer(RegexLexer): ] } + def analyse_text(text): + return 0.05 + class ActionScript3Lexer(RegexLexer): """ @@ -218,6 +221,9 @@ class ActionScript3Lexer(RegexLexer): ] } + def analyse_text(text): + if re.match(r'\w+\s*:\s*\w', text): return 0.3 + return 0.1 class CssLexer(RegexLexer): """ |