diff options
author | Georg Brandl <georg@python.org> | 2014-03-26 07:23:33 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-03-26 07:23:33 +0100 |
commit | f18b15acf65ae5ce2241db9a926cc7e4a7812991 (patch) | |
tree | a1123d95c63a6f28fbca115bd4ff427f28a755ed /pygments/lexers/web.py | |
parent | 3b32694232f47f239c5f8a01bb9138f2c7e7a425 (diff) | |
download | pygments-f18b15acf65ae5ce2241db9a926cc7e4a7812991.tar.gz |
Closes #970: fix overly zealous recognition of "as" as an operator.
Diffstat (limited to 'pygments/lexers/web.py')
-rw-r--r-- | pygments/lexers/web.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py index c975ad80..c9f07d06 100644 --- a/pygments/lexers/web.py +++ b/pygments/lexers/web.py @@ -3691,7 +3691,7 @@ class DartLexer(RegexLexer): r'native|operator|set|static|typedef|var)\b', Keyword.Declaration), (r'\b(bool|double|Dynamic|int|num|Object|String|void)\b', Keyword.Type), (r'\b(false|null|true)\b', Keyword.Constant), - (r'[~!%^&*+=|?:<>/-]|as', Operator), + (r'[~!%^&*+=|?:<>/-]|as\b', Operator), (r'[a-zA-Z_$][a-zA-Z0-9_]*:', Name.Label), (r'[a-zA-Z_$][a-zA-Z0-9_]*', Name), (r'[(){}\[\],.;]', Punctuation), |