jEdit Community - Resources for users of the jEdit Text Editor
Updated Tcl Edit mode (tcl.xml v2006/10/20 by Jean-François Larvoire)
Submitted by larvoire on Friday, 20 October, 2006 - 14:56
Hello,

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.
Known limitations:
  • 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.
Known bugs (Were there before, and I failed to fix them):
  • \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.
Any hint at how to fix the last two known bugs is welcome!

Updated on 10/20/2006 - 14:56
Downloads: 1178

User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300