diff options
author | Andy Li <andy@onthewings.net> | 2013-02-26 00:31:52 +0800 |
---|---|---|
committer | Andy Li <andy@onthewings.net> | 2013-02-26 00:31:52 +0800 |
commit | 7df9735d656d22a7769201caa634b8acdf43549a (patch) | |
tree | ed1edf9334991927a13081adba385078290cc740 | |
parent | 5c449dd859b694ee5a8ea14140a7be03f5316388 (diff) | |
download | pygments-7df9735d656d22a7769201caa634b8acdf43549a.tar.gz |
No, the ident of compiler switch should not contain "-".
-rw-r--r-- | pygments/lexers/web.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py index e14f7217..00c0a81e 100644 --- a/pygments/lexers/web.py +++ b/pygments/lexers/web.py @@ -1277,8 +1277,7 @@ class HaxeLexer(ExtendedRegexLexer): (r'\!', Comment.Preproc), (r'\(', Comment.Preproc, ('#pop', 'preproc-parenthesis')), - # Haxe preproc name can contains '-' - (ident + r'(?:-' + ident + ')*', Comment.Preproc, '#pop'), + (ident, Comment.Preproc, '#pop'), (r"'", String.Single, ('#pop', 'string-single')), (r'"', String.Double, ('#pop', 'string-double')), ], @@ -1301,8 +1300,7 @@ class HaxeLexer(ExtendedRegexLexer): (r'\!', Comment.Preproc), (r'\(', Comment.Preproc, ('#pop', 'preproc-expr-chain', 'preproc-parenthesis')), - # Haxe preproc name can contains '-' - (ident + r'(?:-' + ident + ')*', Comment.Preproc, ('#pop', 'preproc-expr-chain')), + (ident, Comment.Preproc, ('#pop', 'preproc-expr-chain')), (r"'", String.Single, ('#pop', 'preproc-expr-chain', 'string-single')), (r'"', String.Double, ('#pop', 'preproc-expr-chain', 'string-double')), ], |