From: Chandler Carruth Date: Wed, 15 Jul 2015 01:48:40 +0000 (+0000) Subject: [vim] Update the syntax to mark REQUIRES lines and not talk about X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a07ff8e0fabf656b2df77ffbae9a1a49c594b8a1;p=oota-llvm.git [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.... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242267 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/vim/syntax/llvm.vim b/utils/vim/syntax/llvm.vim index 913d0f5f1c3..0e2cbd3e646 100644 --- a/utils/vim/syntax/llvm.vim +++ b/utils/vim/syntax/llvm.vim @@ -84,10 +84,10 @@ syn match llvmConstant /\/ syn match llvmConstant /\/ syn match llvmConstant /\/ -" 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")