|
From: | David Lawrence Ramsey |
Subject: | Re: [Nano-devel] aggressive C color highlighting |
Date: | Tue, 01 Aug 2006 10:46:50 -0400 |
User-agent: | Thunderbird 1.5.0.5 (X11/20060719) |
Mike Frysinger wrote: > the comment highlighting: > color brightblue "//.*" > color brightblue start="/\*" end="\*/" > > will incorrectly match this C code: > //*foo = 'd'; > *foo = 'c'; > > i'd like to change this to: > color brightblue "//.*" > color brightblue start="[^/]/\*" end="\*/" > > but then that would match the ; here: > foo = 'd';/* foo */ > > any ideas ? How about this? color brightblue "//.*" color brightblue start="(/){1}\*" end="\*(/){1}"
[Prev in Thread] | Current Thread | [Next in Thread] |