|
134 | 134 | ;; The first character of an identifier must be a letter or an underscore.
|
135 | 135 | ;; After that, they may contain any alphanumeric character + underscore.
|
136 | 136 | ;; Additionally, the final character may be either `?' or `!'.
|
137 |
| - (identifiers . ,(rx (one-or-more (any "A-Z" "a-z" "_")) |
| 137 | + (identifiers . ,(rx (any "A-Z" "a-z" "_") |
138 | 138 | (zero-or-more (any "A-Z" "a-z" "0-9" "_"))
|
139 | 139 | (optional (or "?" "!"))))
|
140 | 140 | (keyword . ,(rx symbol-start
|
|
151 | 151 | ;; or `!'.
|
152 | 152 | (module-names . ,(rx symbol-start
|
153 | 153 | (optional (or "%" "&"))
|
154 |
| - (one-or-more (any "A-Z")) |
| 154 | + (any "A-Z") |
155 | 155 | (zero-or-more (any "A-Z" "a-z" "_" "0-9"))
|
156 | 156 | (zero-or-more
|
157 | 157 | (and "."
|
158 |
| - (one-or-more (any "A-Z" "_")) |
| 158 | + (any "A-Z" "_") |
159 | 159 | (zero-or-more (any "A-Z" "a-z" "_" "0-9"))))
|
160 | 160 | (optional (or "!" "?"))
|
161 | 161 | symbol-end))
|
@@ -304,7 +304,7 @@ is used to limit the scan."
|
304 | 304 | (elixir-match-interpolation 0 font-lock-variable-name-face t)
|
305 | 305 |
|
306 | 306 | ;; Module attributes
|
307 |
| - (,(elixir-rx (and "@" (1+ identifiers))) |
| 307 | + (,(elixir-rx (and "@" identifiers)) |
308 | 308 | 0 elixir-attribute-face)
|
309 | 309 |
|
310 | 310 | ;; Keywords
|
@@ -399,7 +399,7 @@ is used to limit the scan."
|
399 | 399 | 1 font-lock-variable-name-face)
|
400 | 400 |
|
401 | 401 | ;; Map keys
|
402 |
| - (,(elixir-rx (group (and (one-or-more identifiers) ":")) space) |
| 402 | + (,(elixir-rx (group (and identifiers ":")) space) |
403 | 403 | 1 elixir-atom-face)
|
404 | 404 |
|
405 | 405 | ;; Pseudovariables
|
|
0 commit comments