diff options
| author | Andy Li <andy@onthewings.net> | 2012-11-23 21:35:44 +0800 |
|---|---|---|
| committer | Andy Li <andy@onthewings.net> | 2012-11-23 21:35:44 +0800 |
| commit | 740a640f58d0630381ea6794f17b04c419f936dd (patch) | |
| tree | a1c4f900f6400e1f99581c3845b085b4bb1eb513 /pygments | |
| parent | b0bcbcb02a1a22551c9ac8104b93136058d97fff (diff) | |
| download | pygments-740a640f58d0630381ea6794f17b04c419f936dd.tar.gz | |
Fixed 'type-param-constraint-sep'
Diffstat (limited to 'pygments')
| -rw-r--r-- | pygments/lexers/web.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py index 7adc49e0..1193584f 100644 --- a/pygments/lexers/web.py +++ b/pygments/lexers/web.py @@ -1638,6 +1638,12 @@ class HaxeLexer(RegexLexer): (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')), + ], + 'type-param-constraint-flag': [ include('spaces'), (r':', Punctuation, ('#pop', 'type-param-constraint-flag-type')), @@ -1656,12 +1662,6 @@ class HaxeLexer(RegexLexer): (r',', Keyword.Type, 'type'), ], - 'type-param-constraint-sep': [ - include('spaces'), - (r'>', Keyword.Type, '#pop'), - (r',', Keyword.Type, ('#pop', 'type-param-constraint')), - ], - 'parenthesis': [ include('spaces'), (r'', Text, ('#pop', 'parenthesis-close', 'expr')), |
