mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Tighten up the vim LLVM IR syntax highlighting regex for labels, and add a
highlighting rule for identifiers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acb75a9d70
commit
7a523dde57
@ -71,7 +71,8 @@ syn keyword llvmBoolean true false
|
||||
syn keyword llvmConstant zeroinitializer undef null
|
||||
syn match llvmComment /;.*$/
|
||||
syn region llvmString start=/"/ skip=/\\"/ end=/"/
|
||||
syn match llvmLabel /[\-a-zA-Z\$._0-9]*:/
|
||||
syn match llvmLabel /[-a-zA-Z$._][-a-zA-Z$._0-9]*:/
|
||||
syn match llvmIdentifier /[%@][-a-zA-Z$._][-a-zA-Z$._0-9]*/
|
||||
|
||||
" Syntax-highlight dejagnu test commands.
|
||||
syn match llvmSpecialComment /;\s*RUN:.*$/
|
||||
@ -101,6 +102,7 @@ if version >= 508 || !exists("did_c_syn_inits")
|
||||
HiLink llvmConstant Constant
|
||||
HiLink llvmSpecialComment SpecialComment
|
||||
HiLink llvmError Error
|
||||
HiLink llvmIdentifier Identifier
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user