fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.64k stars 260 forks source link

[ Elixir ] Match atoms, variables and function names before keywords #1202

Closed wkirschbaum closed 2 years ago

wkirschbaum commented 3 years ago

When using a @for variable, the font is wrong. Similarly with :for etc..

Moving the keyword and constants down the list means it will match it first. It also makes it not jump colours when choosing variable names like @form between r and m.

wkirschbaum commented 3 years ago

@fxbois this is also valid syntax with .heex templates, but not sure if it is good to modify the opening tag for everything. do you perhaps have any suggestions?

<.form let={f} for={:test}>
  Hello Heex!
</.form>
fxbois commented 2 years ago

thx