Sublime Forum

Inline comment for Tcl syntax wrong implementation

#1

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.

0 Likes

#2

please report this at https://github.com/sublimehq/Packages/issues?utf8=✓&q=is%3Aissue+is%3Aopen+tcl

0 Likes

#3

ok, did that

0 Likes