I started this project 3 years ago, I just finally got around to finishing it! I maintain the Shell syntax and C++ syntax for VS Code (I also have a Better Docker Syntax, Better Perl Syntax, Better Prolog Syntax, etc)
NOTE: most themes (including the terrible default VS Code theme) don’t take advantage of the better token-tags provided by this extension. I can’t make your theme do anything, I only give it the opportunity to do better.
oh sweet! i didn’t realize zed did it that way; moved all my scripts to their own files and started home.fileing because the syntax was annoying me when I used vscode and never thought to check again when i switched.
Nailed it , thanks for answering that for me. The tree sitter is so good it’s practically cheating haha. Ive been trying to get VS code to switch for half a decade. That said, I’m not sure how editors like Zed handle nested languages. I didnt know about that # bash trick in Zed, thats fantastic
And on that note, I should mention it is provably impossible to parse nix correctly with the TextMate parser. I have to use a ton of cheats to make it look correct, and there are going to be bugs I just can’t fix. For example, the textmate parser can’t “go back” to a previous line. So if I see a {\n I don’t know if its an attr-set or the start of a function.