slim-template / ruby-slim.tmbundle

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

comment does not highlight at next indented line #14

Closed lidaobing closed 12 years ago

lidaobing commented 12 years ago

comment also works on indented following lines, but you did not highlight it as comment

fredwu commented 12 years ago

I'd love to fix this, but unfortunately Textmate doesn't support syntax highlighting for multiple lines: http://manual.macromates.com/en/language_grammars :(

lidaobing commented 12 years ago

if it does not support multiple line syntax, how does it support C style comment, like

/ comment /

fredwu commented 12 years ago

There needs to be a closing tag to determine when the comments end, in C style's case, you have */. Slim doesn't have an end tag for comments unfortunately.

lidaobing commented 12 years ago

we can not use the indent as the end tag of comments?

fredwu commented 12 years ago

I don't think so. Happy to be proven wrong though. :)