elixir-editors / emacs-elixir

Emacs major mode for Elixir
448 stars 94 forks source link

Highlight atom map keys that end with a newline #470

Closed J3RN closed 3 years ago

J3RN commented 3 years ago

Problem

Presently, the atom face is not applied to the syntactic-sugar (flipped colon) atom keys in a map if the value for key is on the next line.

old_key

Solution

Small change for the rx to accept either a space or a newline after the key. For whatever reason (probably a good one), newlines are not considered part of the "space" class.

new_key

jsmestad commented 3 years ago

@J3RN can you pull in latest master? The CI has switched to Github Actions and should go green now

jsmestad commented 3 years ago

Would you be able to add a test for this so we ensure there is no regression with future updates?