[llvm] r242267 - [vim] Update the syntax to mark REQUIRES lines and not talk about

Chandler Carruth chandlerc at gmail.com
Tue Jul 14 18:48:41 PDT 2015


Author: chandlerc
Date: Tue Jul 14 20:48:40 2015
New Revision: 242267

URL: http://llvm.org/viewvc/llvm-project?rev=242267&view=rev
Log:
[vim] Update the syntax to mark REQUIRES lines and not talk about
dejagnu.

I wonder if it would be useful to handle FileCheck prefixes specially?
Especially if we could get some error checking. Suggestions welcome.
Patches more welcome as I have no idea what I'm doing with vim
script....

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=242267&r1=242266&r2=242267&view=diff
==============================================================================
--- llvm/trunk/utils/vim/syntax/llvm.vim (original)
+++ llvm/trunk/utils/vim/syntax/llvm.vim Tue Jul 14 20:48:40 2015
@@ -84,10 +84,10 @@ syn match   llvmConstant /\<DW_LANG_[a-z
 syn match   llvmConstant /\<DW_VIRTUALITY_[a-z_]\+\>/
 syn match   llvmConstant /\<DIFlag[A-Za-z]\+\>/
 
-" Syntax-highlight dejagnu test commands.
-syn match  llvmSpecialComment /;\s*RUN:.*$/
+" Syntax-highlight lit test commands and bug numbers.
 syn match  llvmSpecialComment /;\s*PR\d*\s*$/
-syn match  llvmSpecialComment /;\s*END\.\s*$/
+syn match  llvmSpecialComment /;\s*REQUIRES:.*$/
+syn match  llvmSpecialComment /;\s*RUN:.*$/
 syn match  llvmSpecialComment /;\s*XFAIL:.*$/
 
 if version >= 508 || !exists("did_c_syn_inits")





More information about the llvm-commits mailing list