From c27fdd3ff07e904d227a1545285f05e5869f8fa5 Mon Sep 17 00:00:00 2001 From: moculus Date: Sat, 4 Apr 2009 05:11:27 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/c.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mode/c.py b/mode/c.py index 3df2514..5653e45 100644 --- a/mode/c.py +++ b/mode/c.py @@ -54,14 +54,14 @@ class CGrammar(Grammar): PatternRule('type', r"(?:auto|char|double|float|int|long|short|void|volatile)(?!" + chr2 + ")"), PatternMatchRule('x', '(' + word + ')( +)(\**)(' + word + ')( *)(\()', - 'type', 'spaces', 'binop', 'function', 'spaces', 'delimiter'), + 'type', 'spaces', 'operator', 'function', 'spaces', 'delimiter'), PatternMatchRule('x', '(' + word + ')(\*+)( +)(' + word + ')( *)(\()', - 'type', 'binop', 'spaces', 'function', 'spaces', 'delimiter'), + 'type', 'operator', 'spaces', 'function', 'spaces', 'delimiter'), PatternMatchRule('x', '(' + word + ')( +)(\**)(' + word + ')', - 'type', 'spaces', 'binop', 'c.identifier'), + 'type', 'spaces', 'operator', 'c.identifier'), PatternMatchRule('x', '(' + word + ')(\*+)( +)(' + word + ')', - 'type', 'binop', 'spaces', 'c.identifier'), + 'type', 'operator', 'spaces', 'c.identifier'), PatternRule('function', word + r'(?= *\()'), @@ -174,7 +174,7 @@ class C(Fundamental): commentc = '//' colors = { - 'c.identifier': ('yellow', 'default', 'bold'), + #'c.identifier': ('yellow', 'default', 'bold'), 'macrocomment.start': ('red', 'default', 'bold'), 'macrocomment.null': ('red', 'default', 'bold'), 'macrocomment.end': ('red', 'default', 'bold'),