diff options
author | Valentin Lorentz <progval@progval.net> | 2015-07-21 16:13:56 +0200 |
---|---|---|
committer | Valentin Lorentz <progval@progval.net> | 2015-07-21 16:13:56 +0200 |
commit | 51af5172c1db6f583d8be7db47f1109dbff33e5b (patch) | |
tree | 0e41efdb5fa537ffb7940c8276f9c47edb3f8971 /pygments | |
parent | 4623af72fc7d005b3ab02fb9e9ca16e1e667b4c1 (diff) | |
download | pygments-51af5172c1db6f583d8be7db47f1109dbff33e5b.tar.gz |
Fix previous commit
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/c_cpp.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pygments/lexers/c_cpp.py b/pygments/lexers/c_cpp.py index 9904f294..7e599cd3 100644 --- a/pygments/lexers/c_cpp.py +++ b/pygments/lexers/c_cpp.py @@ -87,17 +87,15 @@ class CFamilyLexer(RegexLexer): (r'((?:[\w*\s])+?(?:\s|[*]))' # return arguments r'([a-zA-Z_]\w*)' # method name r'(\s*\([^;]*?\))' # signature - r'([^;]*)?' - r'(\{)', + r'([^;]*)?(\{)', bygroups(using(this), Name.Function, using(this), using(this), - Keyword, Punctuation), + Punctuation), 'function'), # function declarations (r'((?:[\w*\s])+?(?:\s|[*]))' # return arguments r'([a-zA-Z_]\w*)' # method name r'(\s*\([^;]*?\))' # signature - r'([^;]*)?' - r'(;)', + r'([^;]*)?(;)', bygroups(using(this), Name.Function, using(this), using(this), Punctuation)), default('statement'), |