diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-23 19:26:53 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-23 19:26:53 -0400 |
commit | 24d72e19ac963000d76a11679448c9e6867feba0 (patch) | |
tree | 2adfb1ccfb667841402dda0f7a43de3fb2b2ece8 /pygments/lexers/compiled.py | |
parent | dd103ebdad40dd55919381e86c0b263140a0ebb1 (diff) | |
download | pygments-24d72e19ac963000d76a11679448c9e6867feba0.tar.gz |
Mark ':' in label as punctuation
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r-- | pygments/lexers/compiled.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index ecf21b9c..af3e4ad7 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -87,7 +87,7 @@ class CFamilyLexer(RegexLexer): r'declspec|finally|int64|try|leave|wchar_t|w64|unaligned|' r'raise|noop|identifier|forceinline|assume)\b', Keyword.Reserved), (r'(true|false|NULL)\b', Name.Builtin), - (r'([a-zA-Z_][a-zA-Z0-9_]*)(\s*:)(?!:)', bygroups(Name.Label, Text)), + (r'([a-zA-Z_][a-zA-Z0-9_]*)(\s*)(:)(?!:)', bygroups(Name.Label, Text, Punctuation)), ('[a-zA-Z_][a-zA-Z0-9_]*', Name), ], 'root': [ |