From 7d3f127530c0c01538ba1be2c2ceac0ec6894a8c Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Sat, 29 Apr 2023 13:49:14 -0500 Subject: [PATCH] [emacs] Highlight 'ptr' keyword as a type Seems natural to highlight 'ptr' same as 'void', 'i1', etc... Reviewed By: artagnon, nikic Differential Revision: https://reviews.llvm.org/D149519 --- llvm/utils/emacs/llvm-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/emacs/llvm-mode.el b/llvm/utils/emacs/llvm-mode.el index c6d594d118d0..bc8dd2f12d2f 100644 --- a/llvm/utils/emacs/llvm-mode.el +++ b/llvm/utils/emacs/llvm-mode.el @@ -36,7 +36,7 @@ '("%[-]?[0-9]+" . font-lock-variable-name-face) ;; Types `(,(regexp-opt - '("void" "i1" "i8" "i16" "i32" "i64" "i128" "half" "bfloat" "float" "double" "fp128" "x86_fp80" "ppc_fp128" "x86_mmx" "x86_amx" + '("void" "i1" "i8" "i16" "i32" "i64" "i128" "half" "bfloat" "float" "double" "fp128" "x86_fp80" "ppc_fp128" "x86_mmx" "x86_amx" "ptr" "type" "label" "opaque" "token") 'symbols) . font-lock-type-face) ;; Integer literals '("\\b[-]?[0-9]+\\b" . font-lock-preprocessor-face) -- 2.34.1