summaryrefslogtreecommitdiff
path: root/pygments/lexers/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/web.py')
-rw-r--r--pygments/lexers/web.py4
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': [