diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-23 16:20:34 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-23 16:20:34 -0400 |
commit | dd103ebdad40dd55919381e86c0b263140a0ebb1 (patch) | |
tree | f46885973477231ed76d378b1514aa661efd9e3d | |
parent | b69477dc22e228cde4c1d39bf11b292b88d95fe1 (diff) | |
parent | 7fba6853c367074bc93f19f25af2673a1d6d4410 (diff) | |
download | pygments-dd103ebdad40dd55919381e86c0b263140a0ebb1.tar.gz |
Merged birkenfeld/pygments-main into default
-rw-r--r-- | pygments/lexers/compiled.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 82af5426..ecf21b9c 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -56,8 +56,6 @@ class CFamilyLexer(RegexLexer): bygroups(using(this), Comment.Preproc), 'if0'), ('^(' + _ws1 + ')(#)', bygroups(using(this), Comment.Preproc), 'macro'), - (r'^(\s*)([a-zA-Z_][a-zA-Z0-9_]*)(\s*:)(?!:)', - bygroups(Text, Name.Label, Text)), (r'\n', Text), (r'\s+', Text), (r'\\\n', Text), # line continuation @@ -89,6 +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)), ('[a-zA-Z_][a-zA-Z0-9_]*', Name), ], 'root': [ |