mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
15 lines
428 B
VimL
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"
|
|
|