annotate runtime/ftplugin/swift.vim @ 31418:462508d04341 v9.0.1042

patch 9.0.1042: ASAN gives false alarm about array access. Commit: https://github.com/vim/vim/commit/4ae0057308c59a0dee2b452736366e49a5a98b3a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 9 22:49:23 2022 +0000 patch 9.0.1042: ASAN gives false alarm about array access. Problem: ASAN gives false alarm about array access. Solution: Use an intermediate pointer.
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Dec 2022 00:00: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