Skip to content

Commit 160ab99

Browse files
committed
[emacs] Highlight hexadecimal integer constants
Today I learnt about their existence (D158288), they just need to be prefixed with a u or s. Reviewed By: goldstein.w.n Differential Revision: https://reviews.llvm.org/D158290
1 parent 8f8df78 commit 160ab99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/emacs/llvm-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
;; Floating point constants
4444
'("\\b[-+]?[0-9]+.[0-9]*\\([eE][-+]?[0-9]+\\)?\\b" . font-lock-preprocessor-face)
4545
;; Hex constants
46-
'("\\b0x[0-9A-Fa-f]+\\b" . font-lock-preprocessor-face)
46+
'("\\b[us]?0x[0-9A-Fa-f]+\\b" . font-lock-preprocessor-face)
4747
;; Keywords
4848
`(,(regexp-opt
4949
'(;; Toplevel entities

0 commit comments

Comments
 (0)