summaryrefslogtreecommitdiff
path: root/pygments/lexers/compiled.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-04-14 12:00:10 -0400
committerTim Hatch <tim@timhatch.com>2014-04-14 12:00:10 -0400
commit5f88359efbd6eb4b6cc97da47782c52b3d9be093 (patch)
tree38e9ee202e5255a7567ca9c2c00685cb420dde2f /pygments/lexers/compiled.py
parentc3d5f1f0cac8ea3d1c666375d6acaa2a896bbb15 (diff)
parent95c02716da8c4f46a6d49b6184d5a222e71a7874 (diff)
downloadpygments-5f88359efbd6eb4b6cc97da47782c52b3d9be093.tar.gz
Merged in redcat9/pygments-main (pull request #304)
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r--pygments/lexers/compiled.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 9a242d61..2737859b 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -1423,7 +1423,7 @@ def objective(baselexer):
(r'^([-+])(\s*)' # method marker
r'(\(.*?\))?(\s*)' # return type
r'([a-zA-Z$_][a-zA-Z0-9$_]*:?)', # begin of method name
- bygroups(Keyword, Text, using(this),
+ bygroups(Punctuation, Text, using(this),
Text, Name.Function),
'method'),
inherit,
@@ -1434,8 +1434,8 @@ def objective(baselexer):
# discussion in Issue 789
(r',', Punctuation),
(r'\.\.\.', Punctuation),
- (r'(\(.*?\))([a-zA-Z$_][a-zA-Z0-9$_]*)', bygroups(using(this),
- Name.Variable)),
+ (r'(\(.*?\))(\s*)([a-zA-Z$_][a-zA-Z0-9$_]*)',
+ bygroups(using(this), Text, Name.Variable)),
(r'[a-zA-Z$_][a-zA-Z0-9$_]*:', Name.Function),
(';', Punctuation, '#pop'),
('{', Punctuation, 'function'),