From cbaaba7f6ca059306d94d0a17e7c10cd170fcc00 Mon Sep 17 00:00:00 2001 From: Emilien Mottet Date: Sun, 16 Jun 2019 18:30:14 +0200 Subject: [PATCH] add test for issue#436 string interpolation into string interpolation --- tests/elixir-mode-font-test.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/elixir-mode-font-test.el b/tests/elixir-mode-font-test.el index 1ca470e8..8140fe16 100644 --- a/tests/elixir-mode-font-test.el +++ b/tests/elixir-mode-font-test.el @@ -612,6 +612,17 @@ Everything in here should be gray, including the @doc and triple-quotes (search-forward "Everything") (should (eq 'font-lock-doc-face (get-char-property (point) 'face))))) +(ert-deftest elixir-mode-syntax-table/string-interpolation-in-string-interpolation() + "https://github.com/elixir-lang/emacs-elixir/issues/263" + :tags '(fontification syntax-table) + (elixir-test-with-temp-buffer + "\"foo #{\"foo #{\"foo\"} oof\"} oof\"" + (should (eq (elixir-test-face-at 4) 'font-lock-string-face)) + (should (eq (elixir-test-face-at 6) 'font-lock-variable-name-face)) + (should (eq (elixir-test-face-at 15) 'font-lock-variable-name-face)) + (should (eq (elixir-test-face-at 23) 'font-lock-variable-name-face)) + (should (eq (elixir-test-face-at 28) 'font-lock-string-face)))) + (provide 'elixir-mode-font-test) ;;; elixir-mode-font-test.el ends here