Re: Tcl Syntax Highlighting

"Aldric L'Hernault" <aldric.l'[email protected]> Wed, 23 Jun 2010 13:13:15 +0200
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
Hello,
> Does anyone know how to modify the Tcl syntax highlighting patterns so
> that code like:
>
> regexp {^\s*#} $line
>
> Will be highlighted correctly? Currently It is highlighted as a
> comment starting from the "#" character, which is wrong.
>    
I have changed default settings to better match Tcl behaviour:
comments start after pound-sign (#) if first non-blanck char on a line, 
or first non blank char after a semi-column.
comments stop at end of line unless continued with backslash (\) as very 
last char before linefeed.

Starting RE:
(^|;)\s*#

Ending RE:
[^\\]$

Hope this helps,
  Aldric

Sorry to copy you, but due to my uncommon email address, I'm unsure the 
mail will get to the list anyway...

-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss