Skip to content

Commit 886aa91

Browse files
committed
Add unit test for hashmark in sigil
1 parent b94f636 commit 886aa91

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/elixir-mode-font-test.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,14 @@ foo
362362
(should (eq (elixir-test-face-at 53) 'font-lock-string-face))
363363
(should (eq (elixir-test-face-at 55) 'font-lock-string-face))))
364364

365+
(ert-deftest elixir-mode-syntax-table/hashmark-in-sigils ()
366+
"Don't treat hashmark in sigils as comment"
367+
:tags '(fontification syntax-table)
368+
(elixir-test-with-temp-buffer
369+
"~s(# foo)"
370+
(should-not (eq (elixir-test-face-at 4) 'font-lock-comment-face))
371+
(should (eq (elixir-test-face-at 6) 'font-lock-string-face))))
372+
365373
(provide 'elixir-mode-font-test)
366374

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

0 commit comments

Comments
 (0)