In TCL, a '#' character is treated as the start of a
comment only if it is located at the beginning of a
command. If it occurs elsewhere, it is not treated
specially unless it is preceded by a semicolon. For
example, the line:
set lChars [ list # - . 0 ]
has no comments in it. However, Colorer treats
everything after the '#' as a comment. This causes all
sorts of errors when trying to highlight bracket and
brace pairs. For the '#' character to start a comment, it
should only look like this:
# Valid Comment
or this:
set iVal 1 ;# valid comment
Logged In: YES
user_id=313042
fixed.
Diff:
< <block start="/\#/" end="/([^\\]?#1$)|([\\]\s+$)/"
scheme="Comment"
---
> <block start="/(^|;)\s{,4}\#/"
end="/([^\\]?#1$)|([\\]\s+$)/" scheme="Comment"