slim-template / ruby-slim.tmbundle

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

Fixed issue #1 #3

Closed icetbr closed 12 years ago

icetbr commented 12 years ago

Hi, I believe this fixes https://github.com/fredwu/ruby-slim-tmbundle/issues/1

Here is a before and after picture from my environment

https://github.com/icet/contrib/raw/master/slim_before.png https://github.com/icet/contrib/raw/master/slim_after.png

ghost commented 12 years ago

Nice work. I had actually started creating a language file from scratch. I believe this repo is adapted from the HAML bundle, and there are a lot of artifacts thereof. Still, getting the regex to work is quite a challenge, particularly in the sense that slim syntax forgoes a lot of delimiters. Your work is a big improvement though.

icetbr commented 12 years ago

Thanks. It was a very small change, that took quite some time to figure it out. I'm no expert in regex. Also, the multi-line static content I didn't even bother to try :-) I'm sure there is some clever/simple regex trick to get it right. Hopefully this change will do until your version is ready!

fredwu commented 12 years ago

Great work @icetbr! Merged! :)