I can’t really get the variables and non-primitive types to be highlighted (you are seeing the variables in light blue just because i made everything in light blue)
Also the fact that it does not accept anything else but .sublime-syntax in yaml and .tmTheme in xml is kinda, ehm, incompatible with things you may find online
Well, change the styling in a .tmTheme file and use it? I don’t know if parser has a unique scope for them. If not, then you also will have to update the .sublime-syntax file. Or use text show rules for specific tokens, i.e., show "list": set text(red).
bat has a huge collection of parsers, all of which are using the .sublime-syntax. I think it’s probably the most common format in Rust ecosystem/libraries. It’s documented and all. So Typst uses it for non-Typst languages.