summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2006-10-25 14:36:45 +0200
committergbrandl <devnull@localhost>2006-10-25 14:36:45 +0200
commitb2f743d01bf21cb27b7ea28a1144d5aeab09cc6c (patch)
tree0f31747d811d4bb0e981ba455971957dbaef16ec
parent9bbdbb7c9dbe9e8f0c227eee5da5846533a6f5c9 (diff)
downloadpygments-b2f743d01bf21cb27b7ea28a1144d5aeab09cc6c.tar.gz
[svn] Add support for some missing C99 keywords.
-rw-r--r--pygments/lexers/compiled.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 576a0071..dc154657 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -48,10 +48,10 @@ class CLexer(RegexLexer):
(r'\d+', Number.Integer),
(r'[~!%^&*()+=|\[\]:,.<>/?-]', Text),
(r'(auto|break|case|const|continue|default|do|else|enum|extern|'
- r'for|goto|if|register|return|sizeof|static|struct|switch|typedef|'
- r'union|volatile|virtual|while)\b', Keyword),
- (r'(int|long|float|short|double|char|unsigned|signed|void)\b',
- Keyword.Type),
+ r'for|goto|if|register|restricted|return|sizeof|static|struct|'
+ r'switch|typedef|union|volatile|virtual|while)\b', Keyword),
+ (r'(int|long|float|short|double|char|unsigned|signed|void|'
+ r'_Complex|_Imaginary|_Bool)\b', Keyword.Type),
(r'(_{0,2}inline|naked|restrict|thread|typename)\b', Keyword.Reserved),
(r'__(asm|int8|based|except|int16|stdcall|cdecl|fastcall|int32|'
r'declspec|finally|int64|try|leave)\b', Keyword.Reserved),