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

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 09:17:49 PDT 2024


================
@@ -34,7 +34,8 @@ patterns:
     captures:
       1:
         name: storage.type.llvm
-  - match: "\\badd\\b|\
+  - match: "(?<=\\s|^)#dbg_(assign|declare|label|value)\\b\
----------------
SLTozer wrote:

> The other lines end |\ - I assume this one should too?

Yes, it should - I'll fix that.

Look-behind - it lets us make sure that this is preceded by the start of the line or whitespace without including that whitespace in the match (so if you had a custom background for instructions, it wouldn't highlight the space behind the "#").

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


More information about the llvm-commits mailing list