Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit aedbf6f

Browse files
committed
[vim] Recognize more FileCheck comments
Summary: Currently vim syntax highlighting recognizes 'CHECK:' as a special comment, but not CHECK-DAG, CHECK-NOT and other CHECKs. This patch adds rules for these comments. Reviewers: chandlerc, compnerd, rogfer01 Reviewed By: rogfer01 Subscribers: rogfer01, llvm-commits Differential Revision: https://reviews.llvm.org/D43289 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325599 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 928e1d7 commit aedbf6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/vim/syntax/llvm.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ syn match llvmSpecialComment /;\s*PR\d*\s*$/
199199
syn match llvmSpecialComment /;\s*REQUIRES:.*$/
200200
syn match llvmSpecialComment /;\s*RUN:.*$/
201201
syn match llvmSpecialComment /;\s*CHECK:.*$/
202+
syn match llvmSpecialComment "\v;\s*CHECK-(NEXT|NOT|DAG|SAME|LABEL):.*$"
202203
syn match llvmSpecialComment /;\s*XFAIL:.*$/
203204

204205
if version >= 508 || !exists("did_c_syn_inits")

0 commit comments

Comments
 (0)