Skip to content

Commit fea4caa

Browse files
committed
Merge pull request #269 from syohex/fix-string-interpolation
Fix string interpolation
2 parents e11c403 + bc907c8 commit fea4caa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elixir-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ is used to limit the scan."
300300
(when (and pos (> pos (point)))
301301
(goto-char pos)
302302
(let ((value (get-text-property pos 'elixir-interpolation)))
303-
(if (eq (car value) ?\")
303+
(if (car value)
304304
(progn
305305
(set-match-data (cdr value))
306306
t)

test/elixir-mode-font-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ some_expr"
241241
"\"\"\"foo\"bar\"baz #{1 + 2} is 3.\"\"\""
242242
(should (eq (elixir-test-face-at 1) 'font-lock-string-face))
243243
(should (eq (elixir-test-face-at 5) 'font-lock-string-face))
244-
(should (eq (elixir-test-face-at 19) 'font-lock-string-face))
244+
(should (eq (elixir-test-face-at 19) 'font-lock-variable-name-face))
245245
(should (eq (elixir-test-face-at 31) 'font-lock-string-face))))
246246

247247
(ert-deftest elixir-mode-syntax-table/fontify-atom-in-pattern-match ()

0 commit comments

Comments
 (0)