summaryrefslogtreecommitdiff
path: root/pygments/lexers/c_cpp.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-15 22:46:09 -0700
committerTim Hatch <tim@timhatch.com>2014-10-15 22:46:09 -0700
commit9d8ee43c77a6d0bf172ae09d31a7c249ed37f925 (patch)
tree3ffebe276a12c32d078a76dffd50bbaabebd5ffb /pygments/lexers/c_cpp.py
parent86c2eee37cf292677032e02f553710d4c1eb1f04 (diff)
downloadpygments-9d8ee43c77a6d0bf172ae09d31a7c249ed37f925.tar.gz
Curly brace escaping, round 2.
These were all pointed out by regexlint but required manual effort to track down (indicator.py was confused by most of them being produced by expressions). Also comment out some iffy comment patterns.
Diffstat (limited to 'pygments/lexers/c_cpp.py')
-rw-r--r--pygments/lexers/c_cpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/c_cpp.py b/pygments/lexers/c_cpp.py
index 86927b0e..2e12ec4b 100644
--- a/pygments/lexers/c_cpp.py
+++ b/pygments/lexers/c_cpp.py
@@ -87,7 +87,7 @@ class CFamilyLexer(RegexLexer):
(r'((?:[\w*\s])+?(?:\s|[*]))' # return arguments
r'([a-zA-Z_]\w*)' # method name
r'(\s*\([^;]*?\))' # signature
- r'(' + _ws + r')?({)',
+ r'(' + _ws + r')?(\{)',
bygroups(using(this), Name.Function, using(this), using(this),
Punctuation),
'function'),