summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorAndy Li <andy@onthewings.net>2012-12-16 03:53:46 +0800
committerAndy Li <andy@onthewings.net>2012-12-16 03:53:46 +0800
commit25273ed077997a0ed8ca8bcf34be7b94e248c5cb (patch)
tree304a0b57d61e38debc6e539761f568cb66d8df20 /pygments/lexers
parent33342de19c0946e740713c2cd3e8946f0736f7d7 (diff)
downloadpygments-25273ed077997a0ed8ca8bcf34be7b94e248c5cb.tar.gz
haxe3 pattern matching.
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/web.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index 95b7a104..4ce27a94 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -1535,7 +1535,7 @@ class HaxeLexer(ExtendedRegexLexer):
'switch': [
include('spaces'),
- (r'\(', Text, ('#pop', 'switch-body', 'bracket-open', 'expr')),
+ (r'', Text, ('#pop', 'switch-body', 'bracket-open', 'expr')),
],
'switch-body': [
@@ -1558,7 +1558,7 @@ class HaxeLexer(ExtendedRegexLexer):
'case-guard': [
include('spaces'),
- (r'(?:if)\b', Keyword, ('#pop', 'parenthesis')),
+ (r'(?:if)\b', Keyword, ('#pop', 'parenthesis', 'parenthesis-open')),
(r'', Text, '#pop'),
],