annotate runtime/ftplugin/hare.vim @ 33718:2fc593290679 v9.0.2091

patch 9.0.2091: Vim9: cannot convert list to string using += Commit: https://github.com/vim/vim/commit/6709816f7807c3ebb062a3124e660def184b739b Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sun Nov 5 10:07:03 2023 +0100 patch 9.0.2091: Vim9: cannot convert list to string using += Problem: Vim9: cannot convert list to string using += (after 9.0.2072) Solution: convert dict index to string later in compile_member() fixes: #13485 closes: #13486 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Nov 2023 10:15:05 +0100
parents 02939ae3aaca
children ea0402ba92f6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Hare
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Amelia Clarke <me@rsaihe.dev>
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Previous Maintainer: Drew DeVault <sir@cmpwn.com>
33051
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
5 " Last Updated: 2022-09-28
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
6 " 2023 Aug 28 by Vim Project (undo_ftplugin)
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 if exists('b:did_ftplugin')
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 finish
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 let b:did_ftplugin = 1
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
33051
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
13 " Formatting settings.
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
14 setlocal formatoptions-=t formatoptions+=croql/
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
15
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
16 " Miscellaneous.
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
17 setlocal comments=://
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 setlocal commentstring=//\ %s
33051
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
19 setlocal suffixesadd=.ha
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
33051
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
21 let b:undo_ftplugin = "setl cms< com< fo< sua<"
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
22
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
23 " Hare recommended style.
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
24 if get(g:, "hare_recommended_style", 1)
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
25 setlocal noexpandtab
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
26 setlocal shiftwidth=8
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
27 setlocal softtabstop=0
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
28 setlocal tabstop=8
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
29 setlocal textwidth=80
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
30 let b:undo_ftplugin ..= " | setl et< sts< sw< ts< tw<"
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
31 endif
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 compiler hare
33051
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
34
02939ae3aaca runtime: Set b:undo_ftplugin where missing (#12943)
Christian Brabandt <cb@256bit.org>
parents: 30547
diff changeset
35 " vim: et sw=2 sts=2 ts=8