robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
4ad30f775e
master
1" This source file is part of the Swift.org open source project 2" 3" Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors 4" Licensed under Apache License v2.0 with Runtime Library Exception 5" 6" See https://swift.org/LICENSE.txt for license information 7" See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 8" 9" Vim syntax file 10" Language: gyb on swift 11" 12" Vim maintainer: Emir SARI <bitigchi@me.com> 13 14runtime ! syntax/swift.vim 15unlet b: current_syntax 16 17syn include @Python syntax/python.vim 18syn region pythonCode matchgroup = gybPythonCode start = +^ * % +end = +$ +contains = @Python keepend 19syn region pythonCode matchgroup = gybPythonCode start = +%{ +end = +}% +contains = @Python keepend 20syn match gybPythonCode /\${ [ ^} ] * } / 21hi def link gybPythonCode CursorLineNr 22 23let b: current_syntax = "swiftgyb" 24