annotate runtime/syntax/swiftgyb.vim @ 20788:072ad890c227 v8.2.0946

patch 8.2.0946: cannot use "q" to cancel a number prompt Commit: https://github.com/vim/vim/commit/eebd555733491cb55b9f30fe28772c0fd0ebacf7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 10 15:45:57 2020 +0200 patch 8.2.0946: cannot use "q" to cancel a number prompt Problem: Cannot use "q" to cancel a number prompt. Solution: Recognize "q" instead of ignoring it.
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Jun 2020 16:00:05 +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