deadfoxygrandpa / Elm.tmLanguage

Elm language syntax highlighting and tool integration for ST2/3
https://packagecontrol.io/packages/Elm%20Language%20Support
MIT License
122 stars 27 forks source link

Triple quoted strings #15

Closed evancz closed 9 years ago

evancz commented 9 years ago

I think the current parser does not deal with triple quoted strings at all, so I am seeing stuff like this:

screen shot 2014-12-07 at 4 37 29 pm

Since markdown blocks are out in 0.14, I think triple quoted strings will become more widely used.

deadfoxygrandpa commented 9 years ago

Correct, I haven't added triple quoted strings yet. It shouldn't be very difficult to add.

As a complete aside, I really wish I could write this syntax highlighting stuff using Parsec rather than regular expressions!

evancz commented 9 years ago

Haha, that would be cool! I'm hoping we can get some nice parsing stuff going in Elm in the next couple months, but that probably does not help this case so much :)

deadfoxygrandpa commented 9 years ago

I've made this change in the 0.14 branch, which I'll merge in with master when Elm 0.14 is released

deadfoxygrandpa commented 9 years ago

I just pushed these changes to the master branch.