mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
tablegen.vim:
* Added keyword `field' * Keywords get different highlighting than types * Added a simple attempt at multi-line C-style comments with FIXME README: * Added note about symlinking an entire directory ~/.vim/syntax git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11,11 +11,13 @@ endif
|
||||
|
||||
syn case match
|
||||
|
||||
syn keyword tgKeyword def let in code dag
|
||||
syn keyword tgType class int string list bit bits
|
||||
syn keyword tgKeyword def let in code dag field
|
||||
syn keyword tgType class int string list bit bits
|
||||
syn match tgNumber /\<\d\+\>/
|
||||
syn match tgNumber /\<\d\+\.\d*\>/
|
||||
syn match tgComment /\/\/.*$/
|
||||
" FIXME: this does not capture multi-line C-style comments
|
||||
syn match tgComment /\/\*.*\*\//
|
||||
syn region tgString start=/"/ skip=/\\"/ end=/"/
|
||||
|
||||
if version >= 508 || !exists("did_c_syn_inits")
|
||||
@@ -26,9 +28,8 @@ if version >= 508 || !exists("did_c_syn_inits")
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink tgKeyword Type
|
||||
HiLink tgKeyword Statement
|
||||
HiLink tgType Type
|
||||
"HiLink llvmStatement Statement
|
||||
HiLink tgNumber Number
|
||||
HiLink tgComment Comment
|
||||
HiLink tgString String
|
||||
|
||||
Reference in New Issue
Block a user