comparison runtime/syntax/swiftgyb.vim @ 19180:8edf0aeb71b9

Update runtime files. Commit: https://github.com/vim/vim/commit/1d9215b9aaa120b9d78fee49488556f73007ce78 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 25 13:27:42 2020 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 Jan 2020 13:30:05 +0100
parents
children
comparison
equal deleted inserted replaced
19179:539bca3da740 19180:8edf0aeb71b9
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
14 runtime! syntax/swift.vim
15 unlet b:current_syntax
16
17 syn include @Python syntax/python.vim
18 syn region pythonCode matchgroup=gybPythonCode start=+^ *%+ end=+$+ contains=@Python keepend
19 syn region pythonCode matchgroup=gybPythonCode start=+%{+ end=+}%+ contains=@Python keepend
20 syn match gybPythonCode /\${[^}]*}/
21 hi def link gybPythonCode CursorLineNr
22
23 let b:current_syntax = "swiftgyb"
24