File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed
Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 175175 ; ; Finally, like other identifiers, it can be terminated with either `?'
176176 ; ; or `!' .
177177 (module-names . ,(rx symbol-start
178- (optional " %" )
178+ (optional ( or " %" " & " ) )
179179 (one-or-more (any " A-Z" ))
180180 (zero-or-more (any " A-Z" " a-z" " _" " 0-9" ))
181181 (zero-or-more
184184 (zero-or-more (any " A-Z" " a-z" " _" " 0-9" ))))
185185 (optional (or " !" " ?" ))
186186 symbol-end))
187- (operators1 . ,(rx symbol-start
188- (or " <" " >" " +" " -" " *" " /" " !" " ^" " &" )
189- symbol-end))
190- (operators2 . ,(rx symbol-start
191- (or
192- " ==" " !=" " <=" " >=" " &&" " ||" " <>" " ++" " --" " |>" " =~"
193- " ->" " <-" " |" " ." " =" )
194- symbol-end))
195- (operators3 . ,(rx symbol-start
196- (or " <<<" " >>>" " |||" " &&&" " ^^^" " ~~~" " ===" " !==" )
197- symbol-end))
198187 (pseudo-var . ,(rx symbol-start
199188 (or " _" " __MODULE__" " __DIR__" " __ENV__" " __CALLER__"
200189 " __block__" " __aliases__" )
201190 symbol-end))
202- (punctuation . ,(rx symbol-start
203- (or " \\ " " <<" " >>" " =>" " (" " )" " :" " ;" " " " [" " ]" )
204- symbol-end))
205191 (sigils . ,(rx " ~" (or " B" " C" " R" " S" " b" " c" " r" " s" " w" )))))
206192
207193 (defmacro elixir-rx (&rest sexps )
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ match=~r/foo/"
4949 " defmodule Application.Behavior do
5050 use Application.Behaviour
5151 Stand.Alone.call
52- %RuntimeError{message: msg}"
52+ %RuntimeError{message: msg}
53+ &Enum"
5354 (should (eq (elixir-test-face-at 1 ) 'font-lock-keyword-face ))
5455 (should (eq (elixir-test-face-at 11 ) 'font-lock-type-face ))
5556 (should (eq (elixir-test-face-at 22 ) 'font-lock-type-face ))
@@ -61,6 +62,8 @@ match=~r/foo/"
6162 (should (eq (elixir-test-face-at 53 ) 'font-lock-type-face ))
6263 (should (eq (elixir-test-face-at 68 ) 'font-lock-type-face ))
6364 (should (eq (elixir-test-face-at 72 ) 'font-lock-type-face ))
65+ (should (eq (elixir-test-face-at 114 ) 'font-lock-type-face ))
66+ (should (eq (elixir-test-face-at 117 ) 'font-lock-type-face ))
6467 ; ; no face for function call
6568 (should (eq (elixir-test-face-at 79 ) nil ))
6669 (should (eq (elixir-test-face-at 84 ) 'font-lock-type-face ))
You can’t perform that action at this time.
0 commit comments