Skip to content

Commit 6d52308

Browse files
committed
add test for issue#436 string interpolation into string interpolation
1 parent 694d133 commit 6d52308

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: test/elixir-mode-font-test.el

+11
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,17 @@ Everything in here should be gray, including the @doc and triple-quotes
603603
(search-forward "Everything")
604604
(should (eq 'font-lock-doc-face (get-char-property (point) 'face)))))
605605

606+
(ert-deftest elixir-mode-syntax-table/string-interpolation-in-string-interpolation()
607+
"https://github.com/elixir-lang/emacs-elixir/issues/263"
608+
:tags '(fontification syntax-table)
609+
(elixir-test-with-temp-buffer
610+
"\"foo #{\"foo #{\"foo\"} oof\"} oof\""
611+
(should (eq (elixir-test-face-at 4) 'font-lock-string-face))
612+
(should (eq (elixir-test-face-at 6) 'font-lock-variable-name-face))
613+
(should (eq (elixir-test-face-at 15) 'font-lock-variable-name-face))
614+
(should (eq (elixir-test-face-at 23) 'font-lock-variable-name-face))
615+
(should (eq (elixir-test-face-at 28) 'font-lock-string-face))))
616+
606617
(provide 'elixir-mode-font-test)
607618

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

0 commit comments

Comments
 (0)