Thomas Aylott (subtleGradient) wrote:
We currently have a Ruby syntax, and the Rails syntax includes it. The current Rails syntax seems to be targeted at Rails 1.1.x. I'm torn about upgrading that syntax however. On the one hand, the official Rails syntax should support the latest version of Rails, but I'd hate to introduce some incompatibilities with current applications written for Rails 1.1.x.
[...]
That way all of the layers are nicely segregated from eachother. Nothing can really change the basic Ruby syntax, so a single tmLanguage should scope the entire thing. Then you can add stuff where you need it in a nicely segregated way.
I think that a dynamic scope set at the project level should be able to tell which version of Rails to inject into Ruby files, etc. Then we don't need a top-level "Rails" language at all, and users can just pick the injected language by changing their project.
-Jacob