-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Description of the problem or steps to reproduce
I had a Javascript file that, every now and then, would have its syntax incorrectly detected as 'shell' and colored as a shell script (the file is named with a .js extension and contains Javascript). After a save, it would always be corrected. I tried to reduce the file to the minimum code that can trigger it and arrived at this:
a`b
About 1/3 of the time I open it, it's detected as a shell script.
It seems to only happens with backquotes. I could never trigger it with a " character.
It also seems to depend on the filename. In particular, it seems to happen if and only if the filename contains the word profile contiguously. It's not about length, letters, or anything else I can notice.
Specifications
Commit hash: ae0c28a
OS: Artix Linux (also happened on FreeBSD)
Terminal: Alacritty