File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 167
167
(or " _" " __MODULE__" " __DIR__" " __ENV__" " __CALLER__"
168
168
" __block__" " __aliases__" )
169
169
symbol-end))
170
- (sigils . ,(rx " ~" (or " B" " C" " R" " S" " b" " c" " r" " s" " w" )))))
170
+ (sigils . ,(rx " ~" (or " B" " C" " D " " R" " S" " b" " c" " r" " s" " w" )))))
171
171
172
172
(defmacro elixir-rx (&rest sexps )
173
173
(let ((rx-constituents (append elixir-rx-constituents rx-constituents)))
Original file line number Diff line number Diff line change 366
366
~w<\" >
367
367
~s\"\"\"
368
368
foo
369
- \"\"\" "
369
+ \"\"\"
370
+ ~D(\" )"
370
371
(should-not (eq (elixir-test-face-at 5 ) 'font-lock-string-face )) ; ~s//
371
372
372
373
(should-not (eq (elixir-test-face-at 7 ) 'font-lock-string-face )) ; ~r||
400
401
(should (eq (elixir-test-face-at 51 ) 'font-lock-string-face )) ; ~s""" """
401
402
(should (eq (elixir-test-face-at 52 ) 'font-lock-string-face ))
402
403
(should (eq (elixir-test-face-at 53 ) 'font-lock-string-face ))
403
- (should (eq (elixir-test-face-at 55 ) 'font-lock-string-face ))))
404
+ (should (eq (elixir-test-face-at 55 ) 'font-lock-string-face ))
405
+
406
+ (should (eq (elixir-test-face-at 66 ) 'font-lock-string-face )))) ; ~D()
404
407
405
408
(ert-deftest elixir-mode-syntax-table/hashmark-in-sigils ()
406
409
" Don't treat hashmark in sigils as comment"
You can’t perform that action at this time.
0 commit comments