Updated Tcl Edit mode (tcl.xml v2006/10/20 by Jean-François Larvoire)
Submitted by Friday, 20 October, 2006 - 14:56
on
Hello,
Here's a much improved Tcl language edit mode, based on the one in the latest source.
Changes:
Here's a much improved Tcl language edit mode, based on the one in the latest source.
Changes:
- Fixed comments detection: Only # at the beginning of Tcl commands are comments!
- Quoted strings can span multiple lines.
- Added recursive in-string substituted command and variable analysis.
- Added numerous missing tcl keywords and variables up to version 8.4.14.
- Removed $ on global variable keywords, as they're often used with $::.
- Added Expect keywords, as KEYWORD2. ("send" was already in tk as KEYWORD2)
- Avoid colouring substituted variables that are homonyms of a keyword.
- Highlight hexadecimal numbers too.
- Unbalanced quotes or brackets within braces, such as in regular expressions, will confuse the analysis. Add behind the confusing instruction a ;# comment with closing quotes and brackets, to trick it into thinking it's balanced again.
- \c escape colouring does not work for escapes embedded in words. I attemted numerous workarounds using spans and regexps, but they all seem to fail to detect anything beginning with a \. And using NO_ESCAPE="TRUE" does not help.
- {} within quoted strings should not affect indentation.
Updated on 10/20/2006 - 14:56
Downloads: 1178