anvie/SoyTemplate — pull request #3 by krismolendyke (2012-04-15 16:12:29+00:00)
Title: Rewrite language definition.

So, this is a bit of an obnoxious pull request, as I've mostly rewritten the SoyTemplate language definition file.

I started a couple of days ago with the goal of adding support for `{template}` tags with optional parameters, and after a few hours I arrived at this.

I'm a Sublime Text 2 user, so I mostly used it while rewriting. However, I did try it out for a good bit in the latest TextMate 2 build and it seems to have feature parity with few exceptions, e.g. the symbol list.

Let me know what you think. I don't generally spend much time writing language definitions so there very well may be room for improvement, or just some outright stupidity in here!

Changes:

- Add support for:

- {template} tags with valid parameters, e.g., private.

- {print} directives, e.g., |noAutoescape.

- Special characters, e.g., {nil}, {sp}

- SoyDoc comments.

- Improve symbol list support for hopping between templates, delegates
and HTML elements with id attributes.

- Update README with installation instructions for Sublime Text 2.

- Update screenshots for TextMate 2 and Sublime Text 2.

- Add .gitignore for filtering .cache files when editing the language
defintion file in Sublime Text 2.

Thanks!