summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Li <andy@onthewings.net>2012-11-25 04:26:49 +0800
committerAndy Li <andy@onthewings.net>2012-11-25 04:26:49 +0800
commit346543583588c3b29b560351d8163ddd3c479458 (patch)
treef94bc8681535210d5e2db2fea9b5de5eb447f99d
parente22aad950f5ea2d4ea53f484b927e1088d4971f9 (diff)
downloadpygments-346543583588c3b29b560351d8163ddd3c479458.tar.gz
More token type fixes.
-rw-r--r--pygments/lexers/web.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index 4ac1768c..74654d40 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -1695,41 +1695,41 @@ class HaxeLexer(ExtendedRegexLexer):
'type-param-sep': [
include('spaces'),
- (r'>', Keyword.Type, '#pop'),
- (r',', Keyword.Type, ('#pop', 'type-param')),
+ (r'>', Punctuation, '#pop'),
+ (r',', Punctuation, ('#pop', 'type-param')),
],
# optional type-param that may include constraint
# ie. <T:Constraint, T2:(ConstraintA,ConstraintB)>
'type-param-constraint': [
include('spaces'),
- (r'<(?!=)', Keyword.Type, ('#pop', 'type-param-constraint-sep', 'type-param-constraint-flag', 'type-name')),
+ (r'<(?!=)', Punctuation, ('#pop', 'type-param-constraint-sep', 'type-param-constraint-flag', 'type-name')),
(r'', Text, '#pop'),
],
'type-param-constraint-sep': [
include('spaces'),
- (r'>', Keyword.Type, '#pop'),
- (r',', Keyword.Type, ('#pop', 'type-param-constraint-sep', 'type-param-constraint-flag', 'type-name')),
+ (r'>', Punctuation, '#pop'),
+ (r',', Punctuation, ('#pop', 'type-param-constraint-sep', 'type-param-constraint-flag', 'type-name')),
],
# the optional constraint inside type-param
'type-param-constraint-flag': [
include('spaces'),
- (r':', Keyword.Type, ('#pop', 'type-param-constraint-flag-type')),
+ (r':', Punctuation, ('#pop', 'type-param-constraint-flag-type')),
(r'', Text, '#pop'),
],
'type-param-constraint-flag-type': [
include('spaces'),
- (r'\(', Keyword.Type, ('#pop', 'type-param-constraint-flag-type-sep', 'type')),
+ (r'\(', Punctuation, ('#pop', 'type-param-constraint-flag-type-sep', 'type')),
(r'', Text, ('#pop', 'type')),
],
'type-param-constraint-flag-type-sep': [
include('spaces'),
- (r'\)', Keyword.Type, '#pop'),
- (r',', Keyword.Type, 'type'),
+ (r'\)', Punctuation, '#pop'),
+ (r',', Punctuation, 'type'),
],
# a parenthesis expr that contain exactly one expr