[PATCH] D158290: [emacs] Highlight hexadecimal integer constants

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 18 11:54:33 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG160ab99539a1: [emacs] Highlight hexadecimal integer constants (authored by luke).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158290/new/

https://reviews.llvm.org/D158290

Files:
  llvm/utils/emacs/llvm-mode.el


Index: llvm/utils/emacs/llvm-mode.el
===================================================================
--- llvm/utils/emacs/llvm-mode.el
+++ llvm/utils/emacs/llvm-mode.el
@@ -43,7 +43,7 @@
    ;; Floating point constants
    '("\\b[-+]?[0-9]+.[0-9]*\\([eE][-+]?[0-9]+\\)?\\b" . font-lock-preprocessor-face)
    ;; Hex constants
-   '("\\b0x[0-9A-Fa-f]+\\b" . font-lock-preprocessor-face)
+   '("\\b[us]?0x[0-9A-Fa-f]+\\b" . font-lock-preprocessor-face)
    ;; Keywords
    `(,(regexp-opt
        '(;; Toplevel entities


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158290.551590.patch
Type: text/x-patch
Size: 521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230818/131b5f68/attachment.bin>


More information about the llvm-commits mailing list