You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darn. I think the C# syntax at some point says to push a "types" scope which doesn't exist, and I don't handle that case properly so it panics. It should just silently do its best because syntax highlighting shouldn't crash.
There's one other scenario I know of where a bad syntax can cause a crash at highlighting-time (malformed regexes) that I also haven't handled properly.
I believe it was an include, rather than a push, and ST just ignores includes if it can't find them (and logs a warning to it's console). Pushes (and sets) to invalid contexts, on the other hand, should always fail as it is an error in the syntax def. Meanwhile, you can use the latest version of the syntax definition from the SublimeHQ's Packages repo's master branch to highlight your C# code, where the missing include has been removed.
Reproduce on master with 1748efe:
Output:
The
Sort
line is the problematic one. The original file had a lot more code in it, but removing that line makes it work.The text was updated successfully, but these errors were encountered: