Tcl and Keyword Highlighting
Posted: 21 Aug 2011 18:52
I'm creating a Tcl/Tk syntax file and I've run into a highlight issue I don't understand. Here's an example:
First, I've defined the word "message" as a keyword, which generally works as expected. However, I've noticed that the string "message" is also colorized as a keyword in the string "-message". I've attached a small screenshot showing the issue. Notice that in the image, other random symbols in front of the "message" string disable the keyword highlighting - as I'd expect. So, it seems that the "-" character is somehow being treated differently in this case.
Originally, I thought it was because I had the "-" character in the Symbols definition - which according to the docs is "used to separate words". However, removing the "-" character from the symbols definition hasn't changed anything.
Thoughts?
Thanks,
Jef
First, I've defined the word "message" as a keyword, which generally works as expected. However, I've noticed that the string "message" is also colorized as a keyword in the string "-message". I've attached a small screenshot showing the issue. Notice that in the image, other random symbols in front of the "message" string disable the keyword highlighting - as I'd expect. So, it seems that the "-" character is somehow being treated differently in this case.
Originally, I thought it was because I had the "-" character in the Symbols definition - which according to the docs is "used to separate words". However, removing the "-" character from the symbols definition hasn't changed anything.
Thoughts?
Thanks,
Jef