Skip to content

Commit

Permalink
add test for issue#436 string interpolation into string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilienMottet committed Jun 16, 2019
1 parent 694d133 commit 6d52308
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/elixir-mode-font-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,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

0 comments on commit 6d52308

Please sign in to comment.