Skip to content

Commit 9faec4e

Browse files
committed
Update runtime files.
1 parent 0abc6e4 commit 9faec4e

19 files changed

Lines changed: 383 additions & 254 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ runtime/compiler/rubyunit.vim @dkearns
5151
runtime/compiler/sass.vim @tpope
5252
runtime/compiler/se.vim @dkearns
5353
runtime/compiler/shellcheck.vim @dkearns
54+
runtime/compiler/sml.vim @dkearns
5455
runtime/compiler/stylelint.vim @dkearns
5556
runtime/compiler/tcl.vim @dkearns
5657
runtime/compiler/tidy.vim @dkearns

README_VIM9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ the text. For example, reindent all the lines:
7070
| Vim new | 0.190276 |
7171

7272
The differences are smaller, but Vim 9 script is clearly the fastest.
73+
Using LuaJIT gives 0.25, only a little bit faster than plain Lua.
7374

7475
How does Vim9 script work? The function is first compiled into a sequence of
7576
instructions. Each instruction has one or two parameters and a stack is

runtime/autoload/syntaxcomplete.vim

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
" Vim completion script
22
" Language: All languages, uses existing syntax highlighting rules
33
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
4-
" Version: 13.0
5-
" Last Change: 2019 Aug 08
4+
" Version: 14.0
5+
" Last Change: 2020 Dec 30
66
" Usage: For detailed help, ":help ft-syntax-omni"
77

88
" History
99
"
10+
" Version 14.0
11+
" - Fixed issue with single quotes and is_keyword
12+
" https://github.com/vim/vim/issues/7463
13+
"
1014
" Version 13.0
1115
" - Extended the option omni_syntax_group_include_{filetype}
1216
" to accept a comma separated list of regex's rather than
@@ -179,7 +183,8 @@ function! syntaxcomplete#Complete(findstart, base)
179183
endif
180184

181185
" let base = s:prepended . a:base
182-
let base = s:prepended
186+
" let base = s:prepended
187+
let base = substitute(s:prepended, "'", "''", 'g')
183188

184189
let filetype = substitute(&filetype, '\.', '_', 'g')
185190
let list_idx = index(s:cache_name, filetype, 0, &ignorecase)
@@ -548,7 +553,7 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
548553
" let syn_list = substitute( @l, '^.*xxx\s*\%(contained\s*\)\?', "", '' )
549554
" let syn_list = substitute( @l, '^.*xxx\s*', "", '' )
550555

551-
" We only want the words for the lines begining with
556+
" We only want the words for the lines beginning with
552557
" containedin, but there could be other items.
553558

554559
" Tried to remove all lines that do not begin with contained

runtime/compiler/sml.vim

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
" Vim compiler file
2+
" Compiler: SML/NJ Compiler
3+
" Maintainer: Doug Kearns <[email protected]>
4+
" Last Change: 2020 Feb 10
5+
6+
if exists("current_compiler")
7+
finish
8+
endif
9+
let current_compiler = "sml"
10+
11+
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
12+
command -nargs=* CompilerSet setlocal <args>
13+
endif
14+
15+
let s:cpo_save = &cpo
16+
set cpo&vim
17+
18+
CompilerSet makeprg=sml
19+
CompilerSet errorformat=%f:%l.%c-%\\d%\\+.%\\d%\\+\ %trror:\ %m,
20+
\%f:%l.%c\ %trror:\ %m,
21+
\%trror:\ %m
22+
\%f:%l.%c-%\\d%\\+.%\\d%\\+\ %tarning:\ %m,
23+
\%f:%l.%c\ %tarning:\ %m,
24+
\%tarning:\ %m,
25+
\%-G%.%#
26+
27+
let &cpo = s:cpo_save
28+
unlet s:cpo_save

runtime/doc/index.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*index.txt* For Vim version 8.2. Last change: 2021 Feb 11
1+
*index.txt* For Vim version 8.2. Last change: 2021 Feb 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1699,7 +1699,8 @@ tag command action ~
16991699
|:version| :ve[rsion] print version number and other info
17001700
|:verbose| :verb[ose] execute command with 'verbose' set
17011701
|:vertical| :vert[ical] make following command split vertically
1702-
|:vim9script| :vim9[script] indicates Vim9 script file
1702+
|:vim9cmd| :vim9[cmd] make following command use Vim9 script syntax
1703+
|:vim9script| :vim9s[cript] indicates Vim9 script file
17031704
|:vimgrep| :vim[grep] search for pattern in files
17041705
|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
17051706
|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode

runtime/doc/pattern.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 8.2. Last change: 2021 Jan 08
1+
*pattern.txt* For Vim version 8.2. Last change: 2021 Feb 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -229,7 +229,7 @@ This is like executing two search commands after each other, except that:
229229
*last-pattern*
230230
The last used pattern and offset are remembered. They can be used to repeat
231231
the search, possibly in another direction or with another count. Note that
232-
two patterns are remembered: One for 'normal' search commands and one for the
232+
two patterns are remembered: One for "normal" search commands and one for the
233233
substitute command ":s". Each time an empty pattern is given, the previously
234234
used pattern is used. However, if there is no previous search command, a
235235
previous substitute pattern is used, if possible.

runtime/doc/popup.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim version 8.2. Last change: 2021 Feb 06
1+
*popup.txt* For Vim version 8.2. Last change: 2021 Feb 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -693,8 +693,8 @@ The second argument of |popup_create()| is a dictionary with options:
693693
the left.
694694
border List with numbers, defining the border thickness
695695
above/right/below/left of the popup (similar to CSS).
696-
Only values of zero and non-zero are recognized.
697-
An empty list uses a border all around.
696+
Only values of zero and non-zero are currently
697+
recognized. An empty list uses a border all around.
698698
borderhighlight List of highlight group names to use for the border.
699699
When one entry it is used for all borders, otherwise
700700
the highlight for the top/right/bottom/left border.
@@ -742,10 +742,10 @@ The second argument of |popup_create()| is a dictionary with options:
742742
line or to another window.
743743
mousemoved Like "moved" but referring to the mouse pointer
744744
position
745-
cursorline non-zero: Highlight the cursor line. Also scrolls the
746-
text to show this line (only works properly
747-
when 'wrap' is off).
748-
zero: Do not highlight the cursor line.
745+
cursorline TRUE: Highlight the cursor line. Also scrolls the
746+
text to show this line (only works properly
747+
when 'wrap' is off).
748+
zero: Do not highlight the cursor line.
749749
Default is zero, except for |popup_menu()|.
750750
filter A callback that can filter typed characters, see
751751
|popup-filter|.

runtime/doc/repeat.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 8.2. Last change: 2021 Jan 23
1+
*repeat.txt* For Vim version 8.2. Last change: 2021 Feb 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -879,7 +879,7 @@ DEFINING BREAKPOINTS
879879
valid in the script where it has been defined and if that
880880
script is called from several other scripts, this will stop
881881
whenever that particular variable will become visible or
882-
unaccessible again.
882+
inaccessible again.
883883

884884
The [lnum] is the line number of the breakpoint. Vim will stop at or after
885885
this line. When omitted line 1 is used.

runtime/doc/tags

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3402,7 +3402,9 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
34023402
:vie editing.txt /*:vie*
34033403
:view editing.txt /*:view*
34043404
:vim quickfix.txt /*:vim*
3405-
:vim9 repeat.txt /*:vim9*
3405+
:vim9 vim9.txt /*:vim9*
3406+
:vim9cmd vim9.txt /*:vim9cmd*
3407+
:vim9s repeat.txt /*:vim9s*
34063408
:vim9script repeat.txt /*:vim9script*
34073409
:vimgrep quickfix.txt /*:vimgrep*
34083410
:vimgrepa quickfix.txt /*:vimgrepa*
@@ -10126,6 +10128,7 @@ vim9-export vim9.txt /*vim9-export*
1012610128
vim9-final vim9.txt /*vim9-final*
1012710129
vim9-gotchas vim9.txt /*vim9-gotchas*
1012810130
vim9-import vim9.txt /*vim9-import*
10131+
vim9-mix vim9.txt /*vim9-mix*
1012910132
vim9-namespace vim9.txt /*vim9-namespace*
1013010133
vim9-rationale vim9.txt /*vim9-rationale*
1013110134
vim9-reload vim9.txt /*vim9-reload*

runtime/doc/todo.txt

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.2. Last change: 2021 Feb 10
1+
*todo.txt* For Vim version 8.2. Last change: 2021 Feb 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -39,13 +39,8 @@ browser use: https://github.com/vim/vim/issues/1234
3939
-------------------- Known bugs and current work -----------------------
4040

4141
Vim9 - Make everything work:
42-
- Use ":vim9cmd" as a command modifier? Then make ":vim9" short for that.
43-
- Add a test for profiling with nested function calls and lambda.
44-
- Expand `=expr` in :next, :argedit, :argadd, :argdelete, :drop
45-
- Expand `=expr` in :vimgrep, :vimgrepadd, :lvimgrep, :lvimgrepadd
46-
- Expand `=expr` in :mkspell
47-
- Unlet with range: "unlet list[a : b]"
4842
- Implement "export {one, two three}".
43+
- Disallow :open ?
4944
- ISN_CHECKTYPE could use check_argtype()
5045
- Using a script variable inside a :def function doesn't work if the variable
5146
is inside a block, see Test_nested_function(). Should it work?
@@ -110,10 +105,11 @@ Vim9 - Make everything work:
110105

111106
Once Vim9 is stable:
112107
- Change the help to prefer Vim9 syntax where appropriate
113-
- Use Vim9 for runtime files.
114-
PR #7497 for autoload/ccomplete.vim
115108
- Add all the error numbers in a good place in documentation.
116109
- In the generic eval docs, point out the Vim9 syntax where it differs.
110+
- Add the "vim9script" feature, can use has('vim9script')
111+
- Use Vim9 for runtime files.
112+
PR #7497 for autoload/ccomplete.vim
117113

118114
Also for Vim9:
119115
- better implementation for partial and tests for that.
@@ -198,8 +194,6 @@ Text properties:
198194
'incsearch' with :s:
199195
- :s/foo using CTRL-G moves to another line, should not happen, or use the
200196
correct line (it uses the last but one line) (Lifepillar, Aug 18, #3345)
201-
- :s@pat/tern@ doesn't include "/" in the pattern. (Takahiro Yoshihara, #3637)
202-
pass delim to do_search() ?
203197
- Also support range: :/foo/,/bar/delete
204198
- Also support for user command, e.g. Cfilter
205199
- :%s/foo should take the first match below the cursor line, unless there
@@ -269,7 +263,7 @@ Terminal emulator window:
269263
- When 'encoding' is not utf-8, or the job is using another encoding, setup
270264
conversions.
271265

272-
Valgind reports memory leaks in test_options
266+
Valgrind reports memory leaks in test_options
273267

274268
test_arglist func Test_all_not_allowed_from_cmdwin() hangs on MS-Windows.
275269

@@ -770,8 +764,6 @@ Memory leaks in test_channel? (or is it because of fork())
770764
matchaddpos() gets slow with many matches. Proposal by Rick Howe, 2018 Jul
771765
19.
772766

773-
Should make 'listchars' global-local. Local to window or to buffer?
774-
Probably window. #5206
775767
Add something like 'fillchars' local to window, but allow for specifying a
776768
highlight name. Esp. for the statusline.
777769
And "extends" and "precedes" are also useful without 'list' set. Also in
@@ -1241,6 +1233,8 @@ Undo problem: "g-" doesn't go back, gets stuck. (Björn Linse, 2016 Jul 18)
12411233
Add "unicode true" to NSIS installer. Doesn't work with Windows 95, which we
12421234
no longer support.
12431235

1236+
Suppoert sort(l, 'F'), convert strings to float. (#7857)
1237+
12441238
sort() is not stable when using numeric/float sort (Nikolay Pavlov, 2016 Sep
12451239
4#1038)
12461240

0 commit comments

Comments
 (0)