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
No, it's not (entirely) possible. Under normal circumstances, it would be; however, Atom now uses this annoying hybrid system where two partly-incompatible parsers are used to highlight source-code. Without going into specifics, there's a feature that both systems have that normally enables me to inject highlighting into unrelated grammars (that is, targeting files that aren't using the Regular Expression or Regular Expression (Extended) grammars). Since Atom introduced its new parsing system, however, that's no longer been an option.
I've added an injection for this, but you'll only see it if you disable Tree Sitter parsers:
(Under Settings → Core → Scroll to the bottom → Uncheck Use Tree Sitter Parsers)
😞 I apologise for the long-winded explanation, but there was no simple "yes/no" answer I could give that was completely accurate/honest.
EDIT: I should add that you may have to disable grammar-selector.hideDuplicateTextMateGrammars in order to select “legacy” grammars in the grammar selector:
(Found under Settings → Packages → Search for grammar-selector → Settings button)
Hey thanks for the detailed explanation! Can't tell you how many times the railroad diagram has found an error that would otherwise go unnoticed, so thanks :)
For example:
Currently the regex there isn't highlighted.
The text was updated successfully, but these errors were encountered: