summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Li <andy@onthewings.net>2013-02-26 00:31:52 +0800
committerAndy Li <andy@onthewings.net>2013-02-26 00:31:52 +0800
commit7df9735d656d22a7769201caa634b8acdf43549a (patch)
treeed1edf9334991927a13081adba385078290cc740
parent5c449dd859b694ee5a8ea14140a7be03f5316388 (diff)
downloadpygments-7df9735d656d22a7769201caa634b8acdf43549a.tar.gz
No, the ident of compiler switch should not contain "-".
-rw-r--r--pygments/lexers/web.py6
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')),
],