[llvm] [RemoveDIs] Update syntax highlighting to include debug records (PR #93660)

Felipe de Azevedo Piovezan via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 09:07:50 PDT 2024


================
@@ -36,6 +36,9 @@ syn keyword llvmStatement sle slt srem store sub switch trunc udiv ueq uge ugt
 syn keyword llvmStatement uitofp ule ult umax umin une uno unreachable unwind
 syn keyword llvmStatement urem va_arg xchg xor zext
 
+" Debug records.
+syn match llvmStatement /\v#dbg_(assign|declare|label|value)/
----------------
felipepiovezan wrote:

`/` is just what you type in vim when you're about to start a search
`\v` is to control the "very magic" behaviour of regex spelling:

> Vim's default 'magic' setting makes characters have the same meaning as in grep, and \v (very magic) makes them the same as the extended regular expressions used by egrep.

https://github.com/llvm/llvm-project/pull/93660


More information about the llvm-commits mailing list