[vim] Add official Apple swift plugin
This commit is contained in:
parent
221cda8038
commit
d385d419ec
9 changed files with 223 additions and 0 deletions
14
vim/bundle/apple-swift/syntax/swiftgyb.vim
Normal file
14
vim/bundle/apple-swift/syntax/swiftgyb.vim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
" Vim syntax file
|
||||
" Language: gyb on swift
|
||||
|
||||
runtime! syntax/swift.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
syn include @Python syntax/python.vim
|
||||
syn region pythonCode matchgroup=gybPythonCode start=+^ *%+ end=+$+ contains=@Python keepend
|
||||
syn region pythonCode matchgroup=gybPythonCode start=+%{+ end=+}%+ contains=@Python keepend
|
||||
syn match gybPythonCode /\${[^}]*}/
|
||||
hi def link gybPythonCode CursorLineNr
|
||||
|
||||
let b:current_syntax = "swiftgyb"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue