From b21e7834eb342a66d2c3930ebfdb5fc6894c56e8 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 13 Jul 2016 03:47:58 +0000 Subject: [PATCH] vim: separate the keywords into one per line This achieves the same result as previously by using line wrapping. This allows us to have one keyword per line which makes adding a new keyword significantly easier, especially if they are inserted in a lexicographical sort order as you no longer need to reflow the content around it. This only does the keywords as that is the group which changes more often. llvm-svn: 275248 --- llvm/utils/vim/syntax/llvm.vim | 138 +++++++++++++++++++++++++++------ 1 file changed, 116 insertions(+), 22 deletions(-) diff --git a/llvm/utils/vim/syntax/llvm.vim b/llvm/utils/vim/syntax/llvm.vim index bb38c7640393..0e8824e90a35 100644 --- a/llvm/utils/vim/syntax/llvm.vim +++ b/llvm/utils/vim/syntax/llvm.vim @@ -36,28 +36,122 @@ syn keyword llvmStatement umax umin une uno unreachable unwind urem va_arg syn keyword llvmStatement xchg xor zext " Keywords. -syn keyword llvmKeyword acq_rel acquire sanitize_address addrspace alias align -syn keyword llvmKeyword alignstack alwaysinline appending arm_aapcs_vfpcc -syn keyword llvmKeyword arm_aapcscc arm_apcscc asm atomic available_externally -syn keyword llvmKeyword blockaddress byval c catch cc ccc cleanup coldcc common -syn keyword llvmKeyword constant datalayout declare default define deplibs -syn keyword llvmKeyword distinct dllexport dllimport except extern_weak external -syn keyword llvmKeyword externally_initialized fastcc filter gc global hhvmcc -syn keyword llvmKeyword hhvm_ccc hidden initialexec inlinehint inreg -syn keyword llvmKeyword intel_ocl_bicc inteldialect internal linkonce -syn keyword llvmKeyword linkonce_odr local_unnamed_addr localdynamic localexec -syn keyword llvmKeyword minsize module monotonic msp430_intrcc musttail naked -syn keyword llvmKeyword nest noalias nocapture noimplicitfloat noinline -syn keyword llvmKeyword nonlazybind noredzone noreturn nounwind optnone optsize -syn keyword llvmKeyword personality private protected ptx_device ptx_kernel -syn keyword llvmKeyword readnone readonly release returns_twice sanitize_thread -syn keyword llvmKeyword sanitize_memory section seq_cst sideeffect signext -syn keyword llvmKeyword singlethread source_filename spir_func spir_kernel sret -syn keyword llvmKeyword ssp sspreq sspstrong swiftcc tail target thread_local to -syn keyword llvmKeyword triple unnamed_addr unordered uwtable volatile weak -syn keyword llvmKeyword weak_odr x86_fastcallcc x86_stdcallcc x86_thiscallcc -syn keyword llvmKeyword x86_64_sysvcc x86_64_win64cc zeroext uselistorder -syn keyword llvmKeyword uselistorder_bb musttail +syn keyword llvmKeyword + \ acq_rel + \ acquire + \ addrspace + \ alias + \ align + \ alignstack + \ alwaysinline + \ appending + \ arm_aapcscc + \ arm_aapcs_vfpcc + \ arm_apcscc + \ asm + \ atomic + \ available_externally + \ blockaddress + \ byval + \ c + \ catch + \ cc + \ ccc + \ cleanup + \ coldcc + \ common + \ constant + \ datalayout + \ declare + \ default + \ define + \ deplibs + \ distinct + \ dllexport + \ dllimport + \ except + \ external + \ externally_initialized + \ extern_weak + \ fastcc + \ filter + \ gc + \ global + \ hhvmcc + \ hhvm_ccc + \ hidden + \ initialexec + \ inlinehint + \ inreg + \ inteldialect + \ intel_ocl_bicc + \ internal + \ linkonce + \ linkonce_odr + \ localdynamic + \ localexec + \ local_unnamed_addr + \ minsize + \ module + \ monotonic + \ msp430_intrcc + \ musttail + \ naked + \ nest + \ noalias + \ nocapture + \ noimplicitfloat + \ noinline + \ nonlazybind + \ noredzone + \ noreturn + \ nounwind + \ optnone + \ optsize + \ personality + \ private + \ protected + \ ptx_device + \ ptx_kernel + \ readnone + \ readonly + \ release + \ returns_twice + \ sanitize_address + \ sanitize_memory + \ sanitize_thread + \ section + \ seq_cst + \ sideeffect + \ signext + \ singlethread + \ source_filename + \ spir_func + \ spir_kernel + \ sret + \ ssp + \ sspreq + \ sspstrong + \ swiftcc + \ tail + \ target + \ thread_local + \ to + \ triple + \ unnamed_addr + \ unordered + \ uselistorder + \ uselistorder_bb + \ uwtable + \ volatile + \ weak + \ weak_odr + \ x86_64_sysvcc + \ x86_64_win64cc + \ x86_fastcallcc + \ x86_stdcallcc + \ x86_thiscallcc + \ zeroext " Obsolete keywords. syn keyword llvmError getresult begin end