Dear all,
I’m developing a plugin which is an add-on to an existing syntax, let’s say Ruby. My plugin has its own directory (so that it can easily be distributed), and defines also tmLanguage and tmTheme files because it uses the output panel and I want to stylize it.
Unfortunately, it shows up as an item in the syntax selection list, but I do not want to show it as it has no syntax (which is defined in the proper Ruby.tmLanguage file).
The questions are:
-
what is the best way to ‘extend’ and existing syntax definition?
-
Shall i use ‘source.ruby’ as scopeName?
-
How can I hide this plugin from the available syntaxes?
-
How can I ensure that my plugin’s commands are only called if within the source.ruby scope?
Thank you so much to any kind soul who will take the time to give me some insights ^^_
Cheers,
r.