Skip to content

Commit c9d492d

Browse files
committed
Improve fontification of bytecode operator '?'.
1 parent f55f9c8 commit c9d492d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

elixir-mode.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@
306306
(one-or-more (any "a-z" "A-Z" "0-9" "_"))
307307
(and "\"" (one-or-more (not (any "\""))) "\"")
308308
(and "'" (one-or-more (not (any "'"))) "'"))))
309-
(code-point . ,(rx "?" (zero-or-one anything)))))
309+
(code-point . ,(rx symbol-start
310+
"?"
311+
anything
312+
symbol-end))))
310313

311314
(defmacro elixir-rx (&rest sexps)
312315
(let ((rx-constituents (append elixir-rx-constituents rx-constituents)))

0 commit comments

Comments
 (0)