[llvm] r325599 - [vim] Recognize more FileCheck comments
Mikhail Maltsev via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 09:27:45 PST 2018
Author: miyuki
Date: Tue Feb 20 09:27:44 2018
New Revision: 325599
URL: http://llvm.org/viewvc/llvm-project?rev=325599&view=rev
Log:
[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
Modified:
llvm/trunk/utils/vim/syntax/llvm.vim
Modified: llvm/trunk/utils/vim/syntax/llvm.vim
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/vim/syntax/llvm.vim?rev=325599&r1=325598&r2=325599&view=diff
==============================================================================
--- llvm/trunk/utils/vim/syntax/llvm.vim (original)
+++ llvm/trunk/utils/vim/syntax/llvm.vim Tue Feb 20 09:27:44 2018
@@ -199,6 +199,7 @@ syn match llvmSpecialComment /;\s*PR\d*
syn match llvmSpecialComment /;\s*REQUIRES:.*$/
syn match llvmSpecialComment /;\s*RUN:.*$/
syn match llvmSpecialComment /;\s*CHECK:.*$/
+syn match llvmSpecialComment "\v;\s*CHECK-(NEXT|NOT|DAG|SAME|LABEL):.*$"
syn match llvmSpecialComment /;\s*XFAIL:.*$/
if version >= 508 || !exists("did_c_syn_inits")
More information about the llvm-commits
mailing list