3 " Maintainer: The LLVM team, http://llvm.org/
8 " FIXME: MIR doesn't actually match LLVM IR. Stop including it all as a
9 " fallback once enough is implemented.
10 " See the MIR LangRef: https://llvm.org/docs/MIRLangRef.html
11 unlet b:current_syntax " Unlet so that the LLVM syntax will load
12 runtime! syntax/llvm.vim
13 unlet b:current_syntax
15 syn match mirType /\<[sp]\d\+\>/
17 " Opcodes. Matching instead of listing them because individual targets can add
18 " these. FIXME: Maybe use some more context to make this more accurate?
19 syn match mirStatement /\<[A-Z][A-Za-z0-9_]*\>/
21 syn match mirPReg /$[-a-zA-Z$._][-a-zA-Z$._0-9]*/
23 if version >= 508 || !exists("did_c_syn_inits")
25 let did_c_syn_inits = 1
26 command -nargs=+ HiLink hi link <args>
28 command -nargs=+ HiLink hi def link <args>
32 HiLink mirStatement Statement
33 HiLink mirPReg Identifier
38 let b:current_syntax = "mir"