Files
swift-mirror/utils/vim/syntax/swiftgyb.vim
Erik Eckstein 6044c97318 utils: vim syntax coloring for swift.gyb files
I just looked at some swift.gyb files (and not at the gyb.py script).
So maybe I missed some gyb features.



Swift SVN r21628
2014-09-01 10:52:48 +00:00

15 lines
428 B
VimL

" 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"