annotate runtime/ftplugin/swift.vim @ 31734:59c474f6715d v9.0.1199

patch 9.0.1199: crash when using kitty and using a mapping with <Esc> Commit: https://github.com/vim/vim/commit/584b853ee034754edd278d15f2966ac3d8c9d72c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 14 21:07:07 2023 +0000 patch 9.0.1199: crash when using kitty and using a mapping with <Esc> Problem: Crash when using kitty and using a mapping with <Esc>. Solution: Do not try setting did_simplify when it is NULL. (closes https://github.com/vim/vim/issues/11817)
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Jan 2023 22:15:03 +0100
parents e2e2cc5d0856
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 "
23573
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
9 " Vim maintainer: Emir SARI <bitigchi@me.com>
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
10 " Last Change: 2021 Jan 08
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
11
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
12 " Only do this when not done yet for this buffer
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
13 if exists("b:did_ftplugin")
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
14 finish
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
15 endif
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
16
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
17 let b:did_ftplugin = 1
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
18 let b:undo_ftplugin = "setlocal comments< expandtab< tabstop< shiftwidth< smartindent<"
19180
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 setlocal comments=s1:/*,mb:*,ex:*/,:///,://
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 setlocal expandtab
19721
bceeded72898 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19180
diff changeset
22 setlocal sw=4 sts=4
19180
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 setlocal smartindent