In Tcl, # is the comment sign at the begining of a line.
# This is a Tcl comment
If I want inline comments, the user must end the line with ; and then write the comment:
# Define a variable “v” = 10 and write a comment at the end of the line:
set v 10; # this is variable v
At the same time, the actual comment sign can be part of the variable definition, or other expressions:
# this is a valid variable:
set #v 10
Unfortunately, ST does not know about those things. The syntax highlighter shows everything after the # in the above expression as an comment, which is anoying.