I’m writing a syntax definition for a tool called ribosome. It’s a code generator that basically adds syntax to turn Ruby, Python, or JavaScript into a preprocessor.
These three variants of Ribosome differ only in the source language, and by extension the usage of source contexts (source.python vs. source.js vs. source.ruby).
However, I don’t want to maintain three files whose contents are more or less the same; I’d rather put the bulk of the file into a hidden syntax definition that is parameterized with something like this:
include: "Packages/Ribosome/Ribosome-impl.sublime-syntax"
args:
lang: "ruby"
Is it possible to do that?