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

Dots are not used for word breaks #12

Closed rtfeldman closed 9 years ago

rtfeldman commented 9 years ago

I've been using this plugin for a few months, and overall it's fantastic!

The only thing that's been bugging me is that dots do not imply word breaks. For example, if I put the cursor at the beginning of state.notes and press Ctrl+Right, in either a .js or a .coffee file the cursor will jump to the left of the . - whereas in a .elm file it will jump to the end of notes.

Not sure if this is intentional or not, but would love it if dots implied word breaks like they do in other parsers!

Thanks for making this plugin, by the way. It rocks! :smiley_cat:

evancz commented 9 years ago

Weirdly, I just came here to open pretty much the same issue. I have also been using this plugin for Haskell files because it's so much better, but I get tripped up on the dots a lot when modifying imports.

deadfoxygrandpa commented 9 years ago

This was intentional, but I don't really remember my reasoning for doing it. After using it for a few months like this, I don't think I like this behavior either.

I'll switch it back!

rtfeldman commented 9 years ago

Awesome! :D

deadfoxygrandpa commented 9 years ago

I think this should be fixed in the latest release.

rtfeldman commented 9 years ago

yesss! Just upgraded, and works like a charm! Thanks so much :smile_cat:

evancz commented 9 years ago

Yeah, works for me too! :+1: