slim-template / ruby-slim.tmbundle

A Textmate / Sublime Text bundle for Slim
http://slim-lang.com/
MIT License
184 stars 46 forks source link

Nested languages #21

Closed d-Pixie closed 7 years ago

d-Pixie commented 11 years ago

When using nested syntaxes, like javascript or markdown, the syntax highlighter is still action as if the code is slim. Here is an example:

http://cl.ly/image/2h2Y1N1i0R3l

I had a look at the syntax definitions and can see that there are filters defined for all the nested languages. I did not find any references to them in the main syntax file however.

I know very little about how the syntax highlighter definitions work, but I'm willing to learn if you could point me to some resources on the subject and maybe mentor me occasionally. I'd be happy to fix this myself, if I could ;)

tobeportable commented 11 years ago

Check pull requests for styl: coffee: or javascript: It should be similar. I tried it for markdown: but there needs to be some extra fiddling.

tshedor commented 7 years ago

@d-Pixie Been a while, but I believe the filters are now highlighting correctly. Please comment if you're still seeing this and I'll re-open.