Re: Tcl Syntax Highlighting
Offer Kaye <[email protected]> Wed, 23 Jun 2010 13:32:16 +0300
| Newsgroups | gmane.editors.nedit.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 23, 2010 at 12:54 AM, Tony Balinski wrote:
> But then you'll have two other
> problems: nested braces (are such things valid in TCL string?)
Sure, since strings in Tcl are just lists and nested lists are a legal
construct:
set my_list {1 2 {3 4}}
> or highlighting
> within a brace-string, and braces when used for other reasons (are there any?)
Alas, yes.
if {conditional} { body }
For example in this case the braces do not act as SQ-Delimiters so the
conditional and body do undergo variable interpolation.
> where you'll have to give REs that provide a bit of context. It can get
> tricky!
That's why I need the help :)
Also I still think (until someone says differently) that the use of
single-quotes in the default NEdit Tcl language recognition pattern as
a SQ-Delimiter is just plain wrong. I wonder if any NEdit developer
who knows Tcl reads this mailing list? :)
Thanks anyway Tony.
Regards,
--
Offer Kaye
--
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss