File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 87
87
`(,(regexp-opt '(" extractvalue" " insertvalue" ) 'symbols ) . font-lock-keyword-face )
88
88
; ; Metadata types
89
89
`(,(regexp-opt '(" distinct" ) 'symbols ) . font-lock-keyword-face )
90
+ ; ; Debug records
91
+ `(,(concat " #" (regexp-opt '(" dbg_assign" " dbg_declare" " dbg_label" " dbg_value" ) 'symbols )) . font-lock-keyword-face )
90
92
; ; Atomic memory ordering constraints
91
93
`(,(regexp-opt '(" unordered" " monotonic" " acquire" " release" " acq_rel" " seq_cst" ) 'symbols ) . font-lock-keyword-face )
92
94
; ; Fast-math flags
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ syn keyword llvmStatement sle slt srem store sub switch trunc udiv ueq uge ugt
36
36
syn keyword llvmStatement uitofp ule ult umax umin une uno unreachable unwind
37
37
syn keyword llvmStatement urem va_arg xchg xor zext
38
38
39
+ " Debug records.
40
+ syn match llvmStatement / \v #dbg_(assign|declare|label|value)/
41
+
39
42
" Keywords.
40
43
syn keyword llvmKeyword
41
44
\ acq_rel
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ patterns:
34
34
captures :
35
35
1 :
36
36
name : storage.type.llvm
37
- - match : " \\ badd\\ b|\
37
+ - match : " (?<=\\ s|^)#dbg_(assign|declare|label|value)\\ b|\
38
+ \\ badd\\ b|\
38
39
\\ baddrspacecast\\ b|\
39
40
\\ balloca\\ b|\
40
41
\\ band\\ b|\
You can’t perform that action at this time.
0 commit comments