Skip to content

Commit a9d30a2

Browse files
committed
Add test of highlighting ignored variable
And remove needless test tag.
1 parent a89a5bf commit a9d30a2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/elixir-mode-font-test.el

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ end
527527

528528
(ert-deftest elixir-mode-syntax-table/question-quote ()
529529
"https://github.com/elixir-lang/emacs-elixir/issues/185"
530-
:tags '(fontification syntax-table hoge)
530+
:tags '(fontification syntax-table)
531531
(elixir-test-with-temp-buffer
532532
"\"\\\"foo\\\"\" |> String.strip(?\")"
533533
(should-not (eq (elixir-test-face-at 28) 'font-lock-string-face)))
@@ -536,6 +536,15 @@ end
536536
"\"\\\"foo\\\"\" |> String.strip(?')"
537537
(should-not (eq (elixir-test-face-at 28) 'font-lock-string-face))))
538538

539+
(ert-deftest elixir-mode-syntax-table/ignored-variables-in-pattern-match ()
540+
"https://github.com/elixir-lang/emacs-elixir/issues/361"
541+
:tags '(fontification syntax-table)
542+
(elixir-test-with-temp-buffer
543+
"(_1_day = 86_400)
544+
_1_day"
545+
(should (eq (elixir-test-face-at 2) 'font-lock-comment-face))
546+
(should (eq (elixir-test-face-at 19) 'font-lock-comment-face))))
547+
539548
(provide 'elixir-mode-font-test)
540549

541550
;;; elixir-mode-font-test.el ends here

0 commit comments

Comments
 (0)