mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[vim] Update the llvm.vim syntax file
We never updated this file to contain the WinEH instructions. Also, add the dereferenceable attribute. llvm-svn: 278146
This commit is contained in:
parent
a3d1356e37
commit
1075cbd4a4
@ -23,7 +23,8 @@ syn match llvmType /\<i\d\+\>/
|
|||||||
" The true and false tokens can be used for comparison opcodes, but it's
|
" The true and false tokens can be used for comparison opcodes, but it's
|
||||||
" much more common for these tokens to be used for boolean constants.
|
" much more common for these tokens to be used for boolean constants.
|
||||||
syn keyword llvmStatement add addrspacecast alloca and arcp ashr atomicrmw
|
syn keyword llvmStatement add addrspacecast alloca and arcp ashr atomicrmw
|
||||||
syn keyword llvmStatement bitcast br call cmpxchg eq exact extractelement
|
syn keyword llvmStatement bitcast br catchpad catchswitch catchret call
|
||||||
|
syn keyword llvmStatement cleanuppad cleanupret cmpxchg eq exact extractelement
|
||||||
syn keyword llvmStatement extractvalue fadd fast fcmp fdiv fence fmul fpext
|
syn keyword llvmStatement extractvalue fadd fast fcmp fdiv fence fmul fpext
|
||||||
syn keyword llvmStatement fptosi fptoui fptrunc free frem fsub getelementptr
|
syn keyword llvmStatement fptosi fptoui fptrunc free frem fsub getelementptr
|
||||||
syn keyword llvmStatement icmp inbounds indirectbr insertelement insertvalue
|
syn keyword llvmStatement icmp inbounds indirectbr insertelement insertvalue
|
||||||
@ -55,6 +56,7 @@ syn keyword llvmKeyword
|
|||||||
\ byval
|
\ byval
|
||||||
\ c
|
\ c
|
||||||
\ catch
|
\ catch
|
||||||
|
\ caller
|
||||||
\ cc
|
\ cc
|
||||||
\ ccc
|
\ ccc
|
||||||
\ cleanup
|
\ cleanup
|
||||||
@ -66,6 +68,7 @@ syn keyword llvmKeyword
|
|||||||
\ default
|
\ default
|
||||||
\ define
|
\ define
|
||||||
\ deplibs
|
\ deplibs
|
||||||
|
\ dereferenceable
|
||||||
\ distinct
|
\ distinct
|
||||||
\ dllexport
|
\ dllexport
|
||||||
\ dllimport
|
\ dllimport
|
||||||
@ -75,6 +78,7 @@ syn keyword llvmKeyword
|
|||||||
\ extern_weak
|
\ extern_weak
|
||||||
\ fastcc
|
\ fastcc
|
||||||
\ filter
|
\ filter
|
||||||
|
\ from
|
||||||
\ gc
|
\ gc
|
||||||
\ global
|
\ global
|
||||||
\ hhvmcc
|
\ hhvmcc
|
||||||
@ -146,6 +150,7 @@ syn keyword llvmKeyword
|
|||||||
\ volatile
|
\ volatile
|
||||||
\ weak
|
\ weak
|
||||||
\ weak_odr
|
\ weak_odr
|
||||||
|
\ within
|
||||||
\ x86_64_sysvcc
|
\ x86_64_sysvcc
|
||||||
\ x86_64_win64cc
|
\ x86_64_win64cc
|
||||||
\ x86_fastcallcc
|
\ x86_fastcallcc
|
||||||
@ -162,7 +167,7 @@ syn match llvmNumber /-\?\<\d\+\>/
|
|||||||
syn match llvmFloat /-\?\<\d\+\.\d*\(e[+-]\d\+\)\?\>/
|
syn match llvmFloat /-\?\<\d\+\.\d*\(e[+-]\d\+\)\?\>/
|
||||||
syn match llvmFloat /\<0x\x\+\>/
|
syn match llvmFloat /\<0x\x\+\>/
|
||||||
syn keyword llvmBoolean true false
|
syn keyword llvmBoolean true false
|
||||||
syn keyword llvmConstant zeroinitializer undef null
|
syn keyword llvmConstant zeroinitializer undef null none
|
||||||
syn match llvmComment /;.*$/
|
syn match llvmComment /;.*$/
|
||||||
syn region llvmString start=/"/ skip=/\\"/ end=/"/
|
syn region llvmString start=/"/ skip=/\\"/ end=/"/
|
||||||
syn match llvmLabel /[-a-zA-Z$._][-a-zA-Z$._0-9]*:/
|
syn match llvmLabel /[-a-zA-Z$._][-a-zA-Z$._0-9]*:/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user