Skip to content

Commit 42c1dab

Browse files
committed
Highlight ignored variable before variable definition highlighting
1 parent a9d30a2 commit 42c1dab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

elixir-mode.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,6 @@ is used to limit the scan."
385385
(optional "="))
386386
1 elixir-atom-face)
387387

388-
;; Variable definitions
389-
(,(elixir-rx (group identifiers)
390-
(zero-or-more space)
391-
(repeat 1 "=")
392-
(or (or sigils identifiers space)
393-
(one-or-more "\n")))
394-
1 font-lock-variable-name-face)
395-
396388
;; Gray out variables starting with "_"
397389
(,(elixir-rx symbol-start
398390
(group (and "_"
@@ -401,6 +393,14 @@ is used to limit the scan."
401393
(optional (or "?" "!"))))
402394
1 font-lock-comment-face)
403395

396+
;; Variable definitions
397+
(,(elixir-rx (group identifiers)
398+
(zero-or-more space)
399+
(repeat 1 "=")
400+
(or (or sigils identifiers space)
401+
(one-or-more "\n")))
402+
1 font-lock-variable-name-face)
403+
404404
;; Map keys
405405
(,(elixir-rx (group (and (one-or-more identifiers) ":")) space)
406406
1 elixir-atom-face)

0 commit comments

Comments
 (0)