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 01:38:56 -0700 (PDT)


--- I wrote:

> --- I'd written:
> > 
> > 
> > --- I wrote:
> > 
> > > [snip] Here's a first try -- [snip]
> > 
> > I'd forgotten a few keywords, and also backticks (i.e. "shell
> > commands"). Fixed "Symbols". Also changed the colors just a bit
> > to be more palatable. The only critical thing to fix now is to
> > get the comment highlighting not to interfere with expression
> > substitution inside double-quoted strings.
> > 
> > Here's what we've got so far:
> > 
> > [snip]
> > 
> > ## Regular expressions.
> > [snip]
> > color red "/[^/]*/[iomx]*"
> > color red "%r\{[^}]*\}[iomx]*"
> > 
> > 
> > [snip]
> > 
> > ---John
> 
> Ok, few small fixes:
> 
> [snip]
> - moved regexes above strings and backticks so they wouldn't
> highlight inside them. Also changed them to brightmagenta.
> [snip]

Ah. Ok, one last correction tonight: fixed regexes to allow
\/ and \} (respectively) in them:

color brightmagenta "/([^/]|(\\/))*/[iomx]*"
color brightmagenta "%r\{([^}]|(\\}))*\}[iomx]*"

---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]