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

Duncan P. N. Exon Smith dexonsmith at apple.com
Thu Jul 16 15:21:18 PDT 2015


> On 2015-Jul-14, at 18:48, Chandler Carruth <chandlerc at gmail.com> wrote:
> 
> 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....

I'd be in favour of something, but it's probably awkward to parse the
-check-prefix options...

> 
> 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")
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list