HarlemSquirrel / language-haml

Haml language grammar for GitHub's Atom IDE
MIT License
33 stars 24 forks source link

Adds 'end' when autocompleting blocks #63

Closed pedantic-git closed 7 years ago

pedantic-git commented 7 years ago

Sorry if I'm misunderstanding something - this could turn out to just be my settings.

It seems like language-haml calls into various autocompletions from the language-ruby.

When a line ends with do, it adds a line below with end, which would be correct in Ruby but not in Haml. The same thing doesn't happen for if-statements so I'm guessing whatever override you have for those should also apply to blocks?

ezekg commented 7 years ago

Good catch. I actually don't think there's an override of any Ruby snippets. I'll try and see what is causing this. Feel free to dig in and submit a PR if you have time to investigate before I get a chance. Might need to define our own snippets for Haml to override Ruby's snippets.

pedantic-git commented 7 years ago

Thanks! I've never worked in Atom's snippets code so I'm afraid I'd be at a loss but let me know if there's anything I can do re: reproducing it etc.

ezekg commented 7 years ago

Fixed in v0.25. 👍