I’m trying to create custom syntax highlighting, and having troubles understanding how .sublime-syntax and theme files work together, when I’m adding my own scopes. I’ve seen that it is possible in other packages. I’ve read the official and unofficial documentation as well.
Currently I have a package folder (because I’m planning to add features later), and inside it a .sublime-syntax file. This works great, whatever custom scopes I assign – they picked up by Sublime Text immediately, I see it in the Scope Viewer.
Now the hard part – how do I style it? If I create a .tmTheme file, it doesn’t work. If I use predefined scope names, like markup., string. or whatever – it works as it should, but those don’t have the styling I need.
Looking into existing packages on github is no use, because there is no consistency at all, so I can’t infer anything from there.
Any help is much appreciated.