summaryrefslogtreecommitdiff
path: root/pygments/lexers/web.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-03-26 07:23:33 +0100
committerGeorg Brandl <georg@python.org>2014-03-26 07:23:33 +0100
commitf18b15acf65ae5ce2241db9a926cc7e4a7812991 (patch)
treea1123d95c63a6f28fbca115bd4ff427f28a755ed /pygments/lexers/web.py
parent3b32694232f47f239c5f8a01bb9138f2c7e7a425 (diff)
downloadpygments-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.py2
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),