Skip to content

Commit cbaaba7

Browse files
committed
add test for issue#436 string interpolation into string interpolation
1 parent d8c29c7 commit cbaaba7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/elixir-mode-font-test.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,17 @@ Everything in here should be gray, including the @doc and triple-quotes
612612
(search-forward "Everything")
613613
(should (eq 'font-lock-doc-face (get-char-property (point) 'face)))))
614614

615+
(ert-deftest elixir-mode-syntax-table/string-interpolation-in-string-interpolation()
616+
"https://github.com/elixir-lang/emacs-elixir/issues/263"
617+
:tags '(fontification syntax-table)
618+
(elixir-test-with-temp-buffer
619+
"\"foo #{\"foo #{\"foo\"} oof\"} oof\""
620+
(should (eq (elixir-test-face-at 4) 'font-lock-string-face))
621+
(should (eq (elixir-test-face-at 6) 'font-lock-variable-name-face))
622+
(should (eq (elixir-test-face-at 15) 'font-lock-variable-name-face))
623+
(should (eq (elixir-test-face-at 23) 'font-lock-variable-name-face))
624+
(should (eq (elixir-test-face-at 28) 'font-lock-string-face))))
625+
615626
(provide 'elixir-mode-font-test)
616627

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

0 commit comments

Comments
 (0)