File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 123123 (* ?\\ ?\\ )
124124 ; ; Match single or triple quotes of any kind.
125125 (group (or " \" " " \"\"\" " " '" " '''" )))))
126- (true-false-nil . ,(rx (or " true" " false" " nil" )))
127126 (atoms . ,(rx " :"
128127 (or
129128 (and
@@ -367,14 +366,8 @@ is used to limit the scan."
367366 (,(elixir-rx (group module-names))
368367 1 font-lock-type-face )
369368
370- ; ; True, false, nil
371- (,(elixir-rx (group true-false-nil)
372- (zero-or-more space)
373- (optional " =" ))
374- 1 elixir-atom-face)
375-
376369 ; ; Atoms and singleton-like words like true/false/nil.
377- (,(elixir-rx (group atoms)
370+ (,(elixir-rx (group ( or atoms " true " " false " " nil " ) )
378371 (zero-or-more space)
379372 (optional " =" ))
380373 1 elixir-atom-face)
Original file line number Diff line number Diff line change @@ -169,14 +169,21 @@ end"
169169 " :oriole
170170:andale
171171:ms2pid
172- :CapitalizedAtom"
172+ :CapitalizedAtom
173+ true
174+ false
175+ nil
176+ "
173177 (should (eq (elixir-test-face-at 3 ) 'elixir-atom-face ))
174178 (should (eq (elixir-test-face-at 5 ) 'elixir-atom-face ))
175179 (should (eq (elixir-test-face-at 10 ) 'elixir-atom-face ))
176180 (should (eq (elixir-test-face-at 13 ) 'elixir-atom-face ))
177181 (should (eq (elixir-test-face-at 18 ) 'elixir-atom-face ))
178182 (should (eq (elixir-test-face-at 23 ) 'elixir-atom-face ))
179- (should (eq (elixir-test-face-at 26 ) 'elixir-atom-face ))))
183+ (should (eq (elixir-test-face-at 26 ) 'elixir-atom-face ))
184+ (should (eq (elixir-test-face-at 43 ) 'elixir-atom-face ))
185+ (should (eq (elixir-test-face-at 48 ) 'elixir-atom-face ))
186+ (should (eq (elixir-test-face-at 54 ) 'elixir-atom-face ))))
180187
181188(ert-deftest elixir-mode-syntax-table/fontify-map-keys ()
182189 :tags '(fontification map syntax-table)
You can’t perform that action at this time.
0 commit comments