Ron at compuvest.com | 11 Aug 01:52 2005

color syntax on Mac OS X Tiger

Color syntax highlighting isn't working properly. Given:
 
 color green "\<(float|char|int|void|static|const|struct)\>"
 
won't work at all, but:
 
 color green "(float|char|int|void|static|const|struct)"
 
Will work, though it would, for example, highlight the "int" in "sprint".  Why isn't the \< and \> word boundry assertions functioning?
 
Ron Newcomb
CompuVest Corp.
3600 Lind Ave. SW
Suite 130
Renton, WA  98055
PH:  (425) 738-4091 x145
Fax: (425) 251-5000
Ron <at> CompuVest.com
www.CompuVest.com
_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-nano
David Lawrence Ramsey | 11 Aug 08:36 2005
Picon
Picon

Re: color syntax on Mac OS X Tiger

Ron at compuvest.com wrote:

 > Color syntax highlighting isn't working properly. Given:
 > 
 >  color green "\<(float|char|int|void|static|const|struct)\>"
 > 
 > won't work at all, but:
 > 
 >  color green "(float|char|int|void|static|const|struct)"
 > 
 > Will work, though it would, for example, highlight the "int" in
 > "sprint".  Why isn't the \< and \> word boundry assertions
 > functioning?

It could be a difference in the word boundary characters.  Apparently,
on at least some of the BSD's, the word boundary characters are
"[[:<:]]" and "[[:>:]]" instead of "\<" and "\>".  Are you using one of
the BSD's, and does changing the word boundary characters this way
affect anything?
David Lawrence Ramsey | 11 Aug 09:24 2005
Picon
Picon

Re: color syntax on Mac OS X Tiger

David Lawrence Ramsey wrote:

<snip>

 > Are you using one of the BSD's

Oops.  Skip this question, obviously.  (I probably shouldn't be
composing emails while tired...)  Mac OS X is BSD-derived, so maybe this
applies, but I'm not sure.

Gmane