Sublime Forum

Problem with shell syntax for comments

#1

Syntax highlighting for shell script comments seems wrong.

Comments on their own line but where the ‘#’ is not the first character are not highlighted as comments.

I tried to explicitly switch to “bash” highlighting, but when I save the file it automatically switches back to “Shell-Unix-Generic”

0 Likes

#2

seems fine for me in either syntax (the generic one just includes the Bash one, so shouldn’t make any difference which is used) in build 3175
perhaps you have some overrides or something getting in the way? you could try reverting to a clean state to check

0 Likes

#3

Yes, I found the culprit: The ApplySyntax plugin.

It applied a “Shell-Generic-Unix” syntax highlighting (and reapplied it when saving).
Just disabled it.

Thx.

0 Likes