Skip to content

Commit a153981

Browse files
committed
Add failing test for string interp highlight.
1 parent 9c2bac0 commit a153981

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/elixir-mode-font-tests.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,12 @@ end"
142142
(should (eq (elixir-test-face-at 4) 'elixir-atom-face))
143143
(should (eq (elixir-test-face-at 9) 'elixir-atom-face))
144144
(should (eq (elixir-test-face-at 10) 'elixir-atom-face))))
145+
146+
(ert-deftest elixir-mode-syntax-table/fontify-interpolation ()
147+
:tags '(fontification interpolation syntax-table)
148+
(elixir-test-with-temp-buffer
149+
"\"#{1 + 2} is 3.\""
150+
(should (eq (elixir-test-face-at 1) 'font-lock-string-face))
151+
(should (eq (elixir-test-face-at 3) 'font-lock-variable-name-face))
152+
(should (eq (elixir-test-face-at 11) 'font-lock-string-face))))
153+

0 commit comments

Comments
 (0)