[llvm] r285927 - vim: special case the CHECK prefix
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 08:56:06 PDT 2016
Author: compnerd
Date: Thu Nov 3 10:56:06 2016
New Revision: 285927
URL: http://llvm.org/viewvc/llvm-project?rev=285927&view=rev
Log:
vim: special case the CHECK prefix
A large number of tests in the LLVM tree use the default (CHECK) prefix
to indicate checked expressions via FileCheck. Highlight it as a
special comment. Although this wont get all the instances of the
checked patters, it is strictly better than the current state.
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=285927&r1=285926&r2=285927&view=diff
==============================================================================
--- llvm/trunk/utils/vim/syntax/llvm.vim (original)
+++ llvm/trunk/utils/vim/syntax/llvm.vim Thu Nov 3 10:56:06 2016
@@ -192,6 +192,7 @@ syn match llvmConstant /\<DIFlag[A-Za-
syn match llvmSpecialComment /;\s*PR\d*\s*$/
syn match llvmSpecialComment /;\s*REQUIRES:.*$/
syn match llvmSpecialComment /;\s*RUN:.*$/
+syn match llvmSpecialComment /;\s*CHECK:.*$/
syn match llvmSpecialComment /;\s*XFAIL:.*$/
if version >= 508 || !exists("did_c_syn_inits")
More information about the llvm-commits
mailing list