Skip to content

Commit 900bd68

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents ec1f011 + 2e2d758 commit 900bd68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1021
-431
lines changed

.github/CODEOWNERS_vim

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

nsis/gvim.nsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ Section "$(str_section_exe)" id_section_exe
359359

360360
SetOutPath $0\colors
361361
File ${VIMRT}\colors\*.*
362+
SetOutPath $0\colors\tools
363+
File ${VIMRT}\colors\tools\*.*
362364

363365
SetOutPath $0\compiler
364366
File ${VIMRT}\compiler\*.*

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 <dougkearns@gmail.com>
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
@@ -1701,7 +1701,8 @@ tag command action ~
17011701
|:version| :ve[rsion] print version number and other info
17021702
|:verbose| :verb[ose] execute command with 'verbose' set
17031703
|:vertical| :vert[ical] make following command split vertically
1704-
|:vim9script| :vim9[script] indicates Vim9 script file
1704+
|:vim9cmd| :vim9[cmd] make following command use Vim9 script syntax
1705+
|:vim9script| :vim9s[cript] indicates Vim9 script file
17051706
|:vimgrep| :vim[grep] search for pattern in files
17061707
|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
17071708
|: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
@@ -3429,7 +3429,9 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
34293429
:vie editing.txt /*:vie*
34303430
:view editing.txt /*:view*
34313431
:vim quickfix.txt /*:vim*
3432-
:vim9 repeat.txt /*:vim9*
3432+
:vim9 vim9.txt /*:vim9*
3433+
:vim9cmd vim9.txt /*:vim9cmd*
3434+
:vim9s repeat.txt /*:vim9s*
34333435
:vim9script repeat.txt /*:vim9script*
34343436
:vimgrep quickfix.txt /*:vimgrep*
34353437
:vimgrepa quickfix.txt /*:vimgrepa*
@@ -10274,6 +10276,7 @@ vim9-export vim9.txt /*vim9-export*
1027410276
vim9-final vim9.txt /*vim9-final*
1027510277
vim9-gotchas vim9.txt /*vim9-gotchas*
1027610278
vim9-import vim9.txt /*vim9-import*
10279+
vim9-mix vim9.txt /*vim9-mix*
1027710280
vim9-namespace vim9.txt /*vim9-namespace*
1027810281
vim9-rationale vim9.txt /*vim9-rationale*
1027910282
vim9-reload vim9.txt /*vim9-reload*

0 commit comments

Comments
 (0)