diff options
| author | Georg Brandl <georg@python.org> | 2019-11-24 16:12:45 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2019-11-24 16:40:54 +0100 |
| commit | 356aff3ac93891532ffd5f44a360ad8403a2aca0 (patch) | |
| tree | 03621fce6a921ed33ae088e22c761a6d7bc86880 /pygments/lexers/javascript.py | |
| parent | 6bf7ebd7016db96eb41e8f48ac0159f29d7a8a90 (diff) | |
| download | pygments-git-356aff3ac93891532ffd5f44a360ad8403a2aca0.tar.gz | |
Dart: add support for annotations (bitbucket PR #733)
Diffstat (limited to 'pygments/lexers/javascript.py')
| -rw-r--r-- | pygments/lexers/javascript.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/javascript.py b/pygments/lexers/javascript.py index e61c451e..c6fdc00f 100644 --- a/pygments/lexers/javascript.py +++ b/pygments/lexers/javascript.py @@ -372,6 +372,7 @@ class DartLexer(RegexLexer): (r'\b(bool|double|dynamic|int|num|Object|String|void)\b', Keyword.Type), (r'\b(false|null|true)\b', Keyword.Constant), (r'[~!%^&*+=|?:<>/-]|as\b', Operator), + (r'@[a-zA-Z_$]\w*', Name.Decorator), (r'[a-zA-Z_$]\w*:', Name.Label), (r'[a-zA-Z_$]\w*', Name), (r'[(){}\[\],.;]', Punctuation), |
