Closed d-led closed 8 years ago
This was fixed in build 3096
My apologizes, someone added a test for that with the commit, but I missed the fact that they didn't actually fix it. I'll work on getting that corrected now.
Should be fixed by https://github.com/sublimehq/Packages/commit/f89329688ca5076ad02ea4c9710f5c21bacf17b5, which will be part of dev build 3112.
ok!
yay, looks good!
hm.. curly braces should probably not be highlighted as strings, as "everything is a string"
it should be rather:
working example: http://ideone.com/7KsnMz
@d-led could you open that as a new issue please?
ok
Thank you.
you're welcome and thanks in return
Summary
Tcl quotes and braces rules are somewhat exotic. The syntax highlighter is confusing the syntactic elements in certain constellations, i.e. expects quoted characters, where no quoting of special characters is possible, such as within curly braces
{ " }
.Example
Wrong highlighting
Note the highlighting after
not_ok
. Theputs
lines should be highlighted normally as commands (functions)Sublime Version
3Dev, Build 3086
Analysis
I haven't investigated further, but the confusion is probably easy to make: the contents within top-level single quotes is not subject to escapes. Thus,
prints
and is highlighted as follows (wrong starting from the last curly brace on the first line):