]> granicus.if.org Git - llvm/commitdiff
vim: special case the CHECK prefix
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 3 Nov 2016 15:56:06 +0000 (15:56 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 3 Nov 2016 15:56:06 +0000 (15:56 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285927 91177308-0d34-0410-b5e6-96231b3b80d8

utils/vim/syntax/llvm.vim

index 8fb22365cdd2cf4db33b4893fd7efa9877a0bde3..3a2b8285350cbdd5727bbc466476a714d22c0af7 100644 (file)
@@ -192,6 +192,7 @@ syn match   llvmConstant /\<DIFlag[A-Za-z]\+\>/
 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")