File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ is used to limit the scan."
278278 (when (memq start-delim '(?' ?\" ))
279279 (setq end (1+ end))
280280 (forward-char -1 ))
281- (while (re-search-forward " [\" ']" end t )
281+ (while (re-search-forward " [\" '# ]" end t )
282282 (put-text-property (1- (point )) (point ) 'syntax-table word-syntax))))))
283283
284284(defun elixir-syntax-propertize-function (start end )
Original file line number Diff line number Diff line change 362362 (should (eq (elixir-test-face-at 53 ) 'font-lock-string-face ))
363363 (should (eq (elixir-test-face-at 55 ) 'font-lock-string-face ))))
364364
365+ (ert-deftest elixir-mode-syntax-table/hashmark-in-sigils ()
366+ " Don't treat hashmark in sigils as comment"
367+ :tags '(fontification syntax-table)
368+ (elixir-test-with-temp-buffer
369+ " ~s(# foo)"
370+ (should-not (eq (elixir-test-face-at 4 ) 'font-lock-comment-face ))
371+ (should (eq (elixir-test-face-at 6 ) 'font-lock-string-face ))))
372+
365373(provide 'elixir-mode-font-test )
366374
367375; ;; elixir-mode-font-test.el ends here
You can’t perform that action at this time.
0 commit comments