Writing a bunch of modes for different simulators I found that for tcl-like languages
jedit is seriously missing a line continuation character.
For native tcl commands typically look like:
command opt_1 opt_2 ... arg_1 arg_2
From highlighting point of view, it would make sens to give each group of command, options opt_x and arguments arg_x different colors.
Using a KEYWORD list straight forward fails, because some commands are equal to options from other commands, e.g. format can appear as an option for clock, global as option for interp, set/unset as option for array, join as option for file...
No problem, you would think, just use an EOL_SPAN DELEGATE ... to get the options for each command nicely separated in a rule.
The approach is fine, BUT tcl allows line continuation if the last none-whitespace character is a backslash. Hence we have situations like:
command opt_1 \
opt_2 ... \
So I would suggest to add a rule property tag LineContinuationChar. if this character appears as the last none-white space char on a line, the following line is appended to the current line. And, all lines joined together with a LineContinuationChar are infact handled as a single line in all mode tags.
|Submitted||captainhunt - 2011-10-28 - 07:40:30z||Assigned||nobody|