annotate runtime/syntax/swiftgyb.vim @ 20559:533bbd1917be v8.2.0833

patch 8.2.0833: mapping <C-bslash> doesn't work in the GUI Commit: https://github.com/vim/vim/commit/ca5bc746073b6fd4b7651bc02f7a18b1b43bd4ca Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 27 22:08:34 2020 +0200 patch 8.2.0833: mapping <C-bslash> doesn't work in the GUI Problem: Mapping <C-bslash> doesn't work in the GUI. Solution: Reset seenModifyOtherKeys when starting the GUI. (closes https://github.com/vim/vim/issues/6150)
author Bram Moolenaar <Bram@vim.org>
date Wed, 27 May 2020 22: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