diff options
author | Andy Li <andy@onthewings.net> | 2013-02-21 01:01:21 +0800 |
---|---|---|
committer | Andy Li <andy@onthewings.net> | 2013-02-21 01:01:21 +0800 |
commit | 868ecb305a89cbcc53c8462f0b559699e952981e (patch) | |
tree | b2c77a456854d879e07dc700cd4f600957464457 | |
parent | 72c1e8bae214a0549fce85fdddb79e25b6cc1025 (diff) | |
download | pygments-868ecb305a89cbcc53c8462f0b559699e952981e.tar.gz |
support '-' in preproc
-rw-r--r-- | pygments/lexers/web.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py index 350f5b6c..435b4810 100644 --- a/pygments/lexers/web.py +++ b/pygments/lexers/web.py @@ -1274,7 +1274,9 @@ class HaxeLexer(ExtendedRegexLexer): (r'\s+', Comment.Preproc), (r'\!', Comment.Preproc), (r'\(', Comment.Preproc, ('#pop', 'preproc-expr-chain', 'preproc-parenthesis')), - (ident, Comment.Preproc, ('#pop', 'preproc-expr-chain')), + + # Haxe preproc name can contains '-' + (ident + r'(?:-' + ident + ')*', Comment.Preproc, ('#pop', 'preproc-expr-chain')), ], 'preproc-expr-chain': [ |