summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthatch <devnull@localhost>2009-09-18 18:07:45 -0700
committerthatch <devnull@localhost>2009-09-18 18:07:45 -0700
commit0f2d25c0fb7c54347038ff0fe77bed59d1c5f3f3 (patch)
tree649755b5e9c2f5f3920974396444dc4b136421cd
parent1258be84d7070f7fb15de40b6f5399a7db744b49 (diff)
parentad61af9a74358cd52aff6c0ee2011d8aca38d0ea (diff)
downloadpygments-0f2d25c0fb7c54347038ff0fe77bed59d1c5f3f3.tar.gz
Merge with -main
-rw-r--r--pygments/lexers/compiled.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 9123e777..a2c56b39 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -48,6 +48,7 @@ class CLexer(RegexLexer):
'whitespace': [
(r'^\s*#if\s+0', Comment.Preproc, 'if0'),
(r'^\s*#', Comment.Preproc, 'macro'),
+ (r'^(\s*)([a-zA-Z_][a-zA-Z0-9_]*:(?!:))', bygroups(Text, Name.Label)),
(r'\n', Text),
(r'\s+', Text),
(r'\\\n', Text), # line continuation
@@ -74,7 +75,6 @@ class CLexer(RegexLexer):
(r'__(asm|int8|based|except|int16|stdcall|cdecl|fastcall|int32|'
r'declspec|finally|int64|try|leave)\b', Keyword.Reserved),
(r'(true|false|NULL)\b', Name.Builtin),
- ('[a-zA-Z_][a-zA-Z0-9_]*:(?!:)', Name.Label),
('[a-zA-Z_][a-zA-Z0-9_]*', Name),
],
'root': [