Skip to content

Commit ad14799

Browse files
committed
Add test for map key fontification with value on subsequent line
1 parent 58a0182 commit ad14799

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/elixir-mode-font-test.el

+6-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,12 @@ true_false_nil
250250
;; https://github.com/elixir-editors/emacs-elixir/issues/320
251251
(elixir-test-with-temp-buffer
252252
"<<foo::bar>>"
253-
(should-not (eq (elixir-test-face-at 3) 'elixir-atom-face))))
253+
(should-not (eq (elixir-test-face-at 3) 'elixir-atom-face)))
254+
255+
(elixir-test-with-temp-buffer
256+
"%{key:
257+
a_very_long_value_that_needed_to_wrap}"
258+
(should (eq (elixir-test-face-at 3) 'elixir-atom-face))))
254259

255260
(ert-deftest elixir-mode-syntax-table/fontify-interpolation ()
256261
:tags '(fontification interpolation syntax-table)

0 commit comments

Comments
 (0)