[emacs] Highlight 'ptr' keyword as a type
authorNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 29 Apr 2023 18:49:14 +0000 (13:49 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 29 Apr 2023 18:49:25 +0000 (13:49 -0500)
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

index c6d594d118d0b053f6696d8cdb7253c3b35b9ca1..bc8dd2f12d2f851ea2067b2b266cd8e9d1f14601 100644 (file)
@@ -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)