Skip to content

Commit 709fbe2

Browse files
committed
Merge pull request #284 from gausby/fontify-end-if-the-last-line-in-a-module-is-a-comment
Added a test for highlighting end after comment
2 parents a1b84ec + 8737c0f commit 709fbe2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/elixir-mode-font-test.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ end"
152152
end"
153153
(should (eq (elixir-test-face-at 91) 'font-lock-keyword-face))))
154154

155+
(ert-deftest elixir-mode-syntax-table/fontify-end-if-the-last-line-in-a-module-is-a-comment ()
156+
"https://github.com/elixir-lang/emacs-elixir/issues/283"
157+
:tags '(fontification syntax-table)
158+
(elixir-test-with-temp-buffer
159+
"defmodule Foo do
160+
# foo
161+
end"
162+
(should (eq (elixir-test-face-at 26) 'font-lock-keyword-face))))
163+
155164
(ert-deftest elixir-mode-syntax-table/fontify-heredoc/1 ()
156165
:tags '(fontification heredoc syntax-table)
157166
(elixir-test-with-temp-buffer

0 commit comments

Comments
 (0)