Skip to content

Commit 128e70c

Browse files
committed
Wrap symbol-start and symbol-end for not highlighting like true_false
1 parent 17da231 commit 128e70c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

elixir-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ is used to limit the scan."
367367
1 font-lock-type-face)
368368

369369
;; Atoms and singleton-like words like true/false/nil.
370-
(,(elixir-rx (group (or atoms "true" "false" "nil"))
370+
(,(elixir-rx symbol-start
371+
(group (or atoms "true" "false" "nil"))
372+
symbol-end
371373
(zero-or-more space)
372374
(optional "="))
373375
1 elixir-atom-face)

test/elixir-mode-font-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ some_expr"
248248
(should (eq (elixir-test-face-at 2) 'font-lock-variable-name-face))
249249
(should (eq (elixir-test-face-at 4) 'font-lock-variable-name-face))))
250250

251-
(ert-deftest elixir-mode-syntax-table/fontify-assignment-with-special-atom ()
251+
(ert-deftest elixir-mode-syntax-table/fontify-assignment-with-singleton ()
252252
"https://github.com/elixir-lang/emacs-elixir/issues/245"
253253
:tags '(fontification syntax-table)
254254
(elixir-test-with-temp-buffer

0 commit comments

Comments
 (0)