nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] ruby syntax highlight patterns REDUX


From: John M. Gabriele
Subject: Re: [Nano-devel] ruby syntax highlight patterns REDUX
Date: Mon, 29 May 2006 18:31:07 -0700 (PDT)

--- I wrote: 
> --- I wrote:
> > --- I wrote:
> > 
> > [snip] The only critical thing to fix now is to
> > get the comment highlighting not to interfere with expression
> > substitution inside double-quoted strings.
> > 
> > [snip]
> > 
> > ## Comments.
> > ## How do I make this work everywhere *except* inside a string? XXX
> > color cyan "#.*$"
> > 
> 
> [snip]
> 
> color cyan "#[^{].*$"
> 

Ok, looks like that one fails when there's only one lone comment sign
on a line by itself. Since I want the pattern to match either when there's
a comment sign + not-a-{ sign + whatever, *or* when it's just a comment
sign by itself, the following pattern works:

color cyan "#[^{].*$" "#$"

---John


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]