annotate runtime/syntax/swiftgyb.vim @ 20549:bb6d8e1cb40e

Added tag v8.2.0828 for changeset 6564dafe500574070bfedf0aff3bee118dbc1860
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 May 2020 20:15:04 +0200
parents 8edf0aeb71b9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19180
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " This source file is part of the Swift.org open source project
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 "
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Licensed under Apache License v2.0 with Runtime Library Exception
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 "
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 " See https://swift.org/LICENSE.txt for license information
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 " See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 "
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 " Vim syntax file
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 " Language: gyb on swift
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 "
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 " Vim maintainer: Emir SARI <bitigchi@me.com>
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 runtime! syntax/swift.vim
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 unlet b:current_syntax
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 syn include @Python syntax/python.vim
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 syn region pythonCode matchgroup=gybPythonCode start=+^ *%+ end=+$+ contains=@Python keepend
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 syn region pythonCode matchgroup=gybPythonCode start=+%{+ end=+}%+ contains=@Python keepend
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 syn match gybPythonCode /\${[^}]*}/
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 hi def link gybPythonCode CursorLineNr
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 let b:current_syntax = "swiftgyb"
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24