Skip to content

Commit 4b9f588

Browse files
committed
Highlight digits in atoms
Fixes #172
1 parent 9564992 commit 4b9f588

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

elixir-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ for the Elixir programming language."
185185
`(
186186
(atoms . ,(rx ":"
187187
(or
188-
(one-or-more (any "a-z" "A-Z" "_" "\"" "'"))
188+
(and
189+
(any "a-z" "A-Z" "_" "\"" "'")
190+
(zero-or-more (any "a-z" "A-Z" "0-9" "_" "\"" "'")))
189191
(and "\"" (one-or-more (not (any "\""))) "\"")
190192
(and "'" (one-or-more (not (any "'"))) "'"))))
191193
(builtin . ,(rx symbol-start

0 commit comments

Comments
 (0)