jcollard / elm-mode

Elm mode for emacs
GNU General Public License v3.0
375 stars 67 forks source link

Backslash shouldn't be escape character when it's lambda #84

Closed Menschenkindlein closed 8 years ago

Menschenkindlein commented 8 years ago

Please, make it a punctuation character or so. Now, if you type something like \() -> ......, you get the bracket matching broken. And elm-format doesn't like putting space between the backslash and the argument. AFAIK, in Elm a backslash has the meaning of an escape character only in the context of strings.

Menschenkindlein commented 8 years ago

Thanks! By the way, does it handle \{records, destructuring} correctly?

Bogdanp commented 8 years ago

I forgot about that case! That should now be fixed as well.

Menschenkindlein commented 8 years ago

Awesome!