File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 387
387
'(" \\ (\\ w+\\ )\\ s-*:?=[^=]" 1 font-lock-variable-name-face )
388
388
389
389
; ; regexes:
390
- '(" -[Rr].*[ \n\t ]" . font-lock-constant -face )
390
+ '(" ~r/ \\ (.* \\ )/[, \n\t ]* " 1 font-lock-string -face )
391
391
392
392
; ; atoms, boolean:
393
393
'(" \\ <\\ (true\\ |false\\ |nil\\ )\\ >" . font-lock-reference-face)
Original file line number Diff line number Diff line change @@ -27,7 +27,10 @@ buffer."
27
27
(elixir-test-with-temp-buffer
28
28
" match = ~r/foo/"
29
29
(should (eq (elixir-test-face-at 1 ) 'font-lock-variable-name-face ))
30
- (should (eq (elixir-test-face-at 9 ) 'font-lock-builtin-face ))))
30
+ (should (eq (elixir-test-face-at 9 ) 'font-lock-builtin-face ))
31
+ (should (eq (elixir-test-face-at 12 ) 'font-lock-string-face ))
32
+ ; ; no face for regex delimiters
33
+ (should (eq (elixir-test-face-at 15 ) nil ))))
31
34
32
35
(ert-deftest elixir-mode-syntax-table/fontify-modules-and-types ()
33
36
:tags '(fontification syntax-table)
You can’t perform that action at this time.
0 commit comments