Skip to content

Commit 9d545d4

Browse files
committed
Add underscores in numeric literals support to emacs mode
1 parent 2a129be commit 9d545d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tools/emacs/erlang.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,8 +1224,8 @@ This must be placed in front of `erlang-font-lock-keywords-vars'.")
12241224
1 'font-lock-type-face)
12251225
;; Don't highlight numerical constants.
12261226
(list (if erlang-regexp-modern-p
1227-
"\\_<[0-9]+#\\([0-9a-zA-Z]+\\)"
1228-
"\\<[0-9]+#\\([0-9a-zA-Z]+\\)")
1227+
"\\_<\\([0-9]+\\(_[0-9]+\\)*#[0-9a-zA-Z]+\\(_[0-9a-zA-Z]+\\)*\\)"
1228+
"\\<\\([0-9]+\\(_[0-9]+\\)*#[0-9a-zA-Z]+\\(_[0-9a-zA-Z]+\\)*\\)")
12291229
1 nil t)
12301230
(list (concat "^-record\\s-*(\\s-*" erlang-atom-regexp)
12311231
1 'font-lock-type-face))

0 commit comments

Comments
 (0)