mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
vim-patch:b17893aa940d
Update runtime files
b17893aa94
Omit feedkeys() changes.
This commit is contained in:
parent
a299f54cd7
commit
e7f6c52014
@ -5024,6 +5024,16 @@ has({feature}) Returns 1 if {feature} is supported, 0 otherwise. The
|
|||||||
{feature} argument is a feature name like "nvim-0.2.1" or
|
{feature} argument is a feature name like "nvim-0.2.1" or
|
||||||
"win32", see below. See also |exists()|.
|
"win32", see below. See also |exists()|.
|
||||||
|
|
||||||
|
If the code has a syntax error, then Nvim may skip the rest
|
||||||
|
of the line and miss |:endif|. >
|
||||||
|
if has('feature') | let x = this->breaks->without->the->feature | endif
|
||||||
|
<
|
||||||
|
Put |:if| and |:endif| on separate lines to avoid the
|
||||||
|
syntax error. >
|
||||||
|
if has('feature')
|
||||||
|
let x = this->breaks->without->the->feature
|
||||||
|
endif
|
||||||
|
<
|
||||||
Vim's compile-time feature-names (prefixed with "+") are not
|
Vim's compile-time feature-names (prefixed with "+") are not
|
||||||
recognized because Nvim is always compiled with all possible
|
recognized because Nvim is always compiled with all possible
|
||||||
features. |feature-compile|
|
features. |feature-compile|
|
||||||
@ -7584,7 +7594,12 @@ setpos({expr}, {list})
|
|||||||
setqflist({list} [, {action}[, {what}]]) *setqflist()*
|
setqflist({list} [, {action}[, {what}]]) *setqflist()*
|
||||||
Create or replace or add to the quickfix list.
|
Create or replace or add to the quickfix list.
|
||||||
|
|
||||||
When {what} is not present, use the items in {list}. Each
|
If the optional {what} dictionary argument is supplied, then
|
||||||
|
only the items listed in {what} are set. The first {list}
|
||||||
|
argument is ignored. See below for the supported items in
|
||||||
|
{what}.
|
||||||
|
|
||||||
|
When {what} is not present, the items in {list} are used. Each
|
||||||
item must be a dictionary. Non-dictionary items in {list} are
|
item must be a dictionary. Non-dictionary items in {list} are
|
||||||
ignored. Each dictionary item can contain the following
|
ignored. Each dictionary item can contain the following
|
||||||
entries:
|
entries:
|
||||||
@ -7639,10 +7654,7 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()*
|
|||||||
freed. To add a new quickfix list at the end of the stack,
|
freed. To add a new quickfix list at the end of the stack,
|
||||||
set "nr" in {what} to "$".
|
set "nr" in {what} to "$".
|
||||||
|
|
||||||
If the optional {what} dictionary argument is supplied, then
|
The following items can be specified in dictionary {what}:
|
||||||
only the items listed in {what} are set. The first {list}
|
|
||||||
argument is ignored. The following items can be specified in
|
|
||||||
{what}:
|
|
||||||
context quickfix list context. See |quickfix-context|
|
context quickfix list context. See |quickfix-context|
|
||||||
efm errorformat to use when parsing text from
|
efm errorformat to use when parsing text from
|
||||||
"lines". If this is not present, then the
|
"lines". If this is not present, then the
|
||||||
@ -9177,11 +9189,12 @@ winlayout([{tabnr}]) *winlayout()*
|
|||||||
" Two horizontally split windows
|
" Two horizontally split windows
|
||||||
:echo winlayout()
|
:echo winlayout()
|
||||||
['col', [['leaf', 1000], ['leaf', 1001]]]
|
['col', [['leaf', 1000], ['leaf', 1001]]]
|
||||||
" Three horizontally split windows, with two
|
" The second tab page, with three horizontally split
|
||||||
" vertically split windows in the middle window
|
" windows, with two vertically split windows in the
|
||||||
|
" middle window
|
||||||
:echo winlayout(2)
|
:echo winlayout(2)
|
||||||
['col', [['leaf', 1002], ['row', ['leaf', 1003],
|
['col', [['leaf', 1002], ['row', [['leaf', 1003],
|
||||||
['leaf', 1001]]], ['leaf', 1000]]
|
['leaf', 1001]]], ['leaf', 1000]]]
|
||||||
<
|
<
|
||||||
*winline()*
|
*winline()*
|
||||||
winline() The result is a Number, which is the screen line of the cursor
|
winline() The result is a Number, which is the screen line of the cursor
|
||||||
|
@ -3530,8 +3530,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
be able to execute Normal mode commands.
|
be able to execute Normal mode commands.
|
||||||
This is the opposite of the 'keymap' option, where characters are
|
This is the opposite of the 'keymap' option, where characters are
|
||||||
mapped in Insert mode.
|
mapped in Insert mode.
|
||||||
Also consider resetting 'langremap' to avoid 'langmap' applies to
|
Also consider setting 'langremap' to off, to prevent 'langmap' from
|
||||||
characters resulting from a mapping.
|
applying to characters resulting from a mapping.
|
||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: YAML (YAML Ain't Markup Language)
|
" Language: YAML (YAML Ain't Markup Language)
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se> (inactive)
|
||||||
" Latest Revision: 2008-07-09
|
" Last Change: 2020 Mar 02
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -16,5 +16,10 @@ let b:undo_ftplugin = "setl com< cms< et< fo<"
|
|||||||
setlocal comments=:# commentstring=#\ %s expandtab
|
setlocal comments=:# commentstring=#\ %s expandtab
|
||||||
setlocal formatoptions-=t formatoptions+=croql
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
|
|
||||||
|
if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0
|
||||||
|
let b:undo_ftplugin ..= " sw< sts<"
|
||||||
|
setlocal shiftwidth=2 softtabstop=2
|
||||||
|
endif
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
" Author: John Wellesz <John.wellesz (AT) gmail (DOT) com>
|
" Author: John Wellesz <John.wellesz (AT) gmail (DOT) com>
|
||||||
" URL: https://www.2072productions.com/vim/indent/php.vim
|
" URL: https://www.2072productions.com/vim/indent/php.vim
|
||||||
" Home: https://github.com/2072/PHP-Indenting-for-VIm
|
" Home: https://github.com/2072/PHP-Indenting-for-VIm
|
||||||
" Last Change: 2019 Jully 21st
|
" Last Change: 2020 Mar 05
|
||||||
" Version: 1.70
|
" Version: 1.70
|
||||||
"
|
"
|
||||||
"
|
"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Vim help file
|
" Language: Vim help file
|
||||||
" Maintainer: Bram Moolenaar (Bram@vim.org)
|
" Maintainer: Bram Moolenaar (Bram@vim.org)
|
||||||
" Last Change: 2019 Nov 26
|
" Last Change: 2020 Mar 06
|
||||||
|
|
||||||
" Quit when a (custom) syntax file was already loaded
|
" Quit when a (custom) syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -11,7 +11,7 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()_]*[ \t]\+\*"me=e-1
|
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()_]*\ze\(\s\+\*\|$\)"
|
||||||
syn match helpSectionDelim "^===.*===$"
|
syn match helpSectionDelim "^===.*===$"
|
||||||
syn match helpSectionDelim "^---.*--$"
|
syn match helpSectionDelim "^---.*--$"
|
||||||
if has("conceal")
|
if has("conceal")
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Roland Hieber <rohieb+vim-iR0jGdkV@rohieb.name>, <https://github.com/rohieb>
|
" Maintainer: Roland Hieber <rohieb+vim-iR0jGdkV@rohieb.name>, <https://github.com/rohieb>
|
||||||
" Previous Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
" Previous Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||||
" URL: https://github.com/vim/vim/blob/master/runtime/syntax/make.vim
|
" URL: https://github.com/vim/vim/blob/master/runtime/syntax/make.vim
|
||||||
" Last Change: 2020 Jan 15
|
" Last Change: 2020 Mar 04
|
||||||
|
|
||||||
" quit when a syntax file was already loaded
|
" quit when a syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -13,22 +13,13 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
|
||||||
" some special characters
|
" some special characters
|
||||||
syn match makeSpecial "^\s*[@+-]\+"
|
syn match makeSpecial "^\s*[@+-]\+"
|
||||||
syn match makeNextLine "\\\n\s*"
|
syn match makeNextLine "\\\n\s*"
|
||||||
|
|
||||||
" some directives
|
|
||||||
syn match makePreCondit "^ *\(ifn\=\(eq\|def\)\>\|else\(\s\+ifn\=\(eq\|def\)\)\=\>\|endif\>\)"
|
|
||||||
syn match makeInclude "^ *[-s]\=include\s.*$"
|
|
||||||
syn match makeStatement "^ *vpath"
|
|
||||||
syn match makeExport "^ *\(export\|unexport\)\>"
|
|
||||||
syn match makeOverride "^ *override"
|
|
||||||
hi link makeOverride makeStatement
|
|
||||||
hi link makeExport makeStatement
|
|
||||||
|
|
||||||
" catch unmatched define/endef keywords. endef only matches it is by itself on a line, possibly followed by a commend
|
" catch unmatched define/endef keywords. endef only matches it is by itself on a line, possibly followed by a commend
|
||||||
syn region makeDefine start="^\s*define\s" end="^\s*endef\s*\(#.*\)\?$" contains=makeStatement,makeIdent,makePreCondit,makeDefine
|
syn region makeDefine start="^\s*define\s" end="^\s*endef\s*\(#.*\)\?$"
|
||||||
|
\ contains=makeStatement,makeIdent,makePreCondit,makeDefine
|
||||||
|
|
||||||
" Microsoft Makefile specials
|
" Microsoft Makefile specials
|
||||||
syn case ignore
|
syn case ignore
|
||||||
@ -53,17 +44,36 @@ syn match makeConfig "@[A-Za-z0-9_]\+@"
|
|||||||
syn match makeImplicit "^\.[A-Za-z0-9_./\t -]\+\s*:$"me=e-1
|
syn match makeImplicit "^\.[A-Za-z0-9_./\t -]\+\s*:$"me=e-1
|
||||||
syn match makeImplicit "^\.[A-Za-z0-9_./\t -]\+\s*:[^=]"me=e-2
|
syn match makeImplicit "^\.[A-Za-z0-9_./\t -]\+\s*:[^=]"me=e-2
|
||||||
|
|
||||||
syn region makeTarget transparent matchgroup=makeTarget start="^[~A-Za-z0-9_./$()%-][A-Za-z0-9_./\t $()%-]*:\{1,2}[^:=]"rs=e-1 end=";"re=e-1,me=e-1 end="[^\\]$" keepend contains=makeIdent,makeSpecTarget,makeNextLine,makeComment,makeDString skipnl nextGroup=makeCommands
|
syn region makeTarget transparent matchgroup=makeTarget
|
||||||
syn match makeTarget "^[~A-Za-z0-9_./$()%*@-][A-Za-z0-9_./\t $()%*@-]*::\=\s*$" contains=makeIdent,makeSpecTarget,makeComment skipnl nextgroup=makeCommands,makeCommandError
|
\ start="^[~A-Za-z0-9_./$()%-][A-Za-z0-9_./\t $()%-]*:\{1,2}[^:=]"rs=e-1
|
||||||
|
\ end=";"re=e-1,me=e-1 end="[^\\]$"
|
||||||
|
\ keepend contains=makeIdent,makeSpecTarget,makeNextLine,makeComment,makeDString
|
||||||
|
\ skipnl nextGroup=makeCommands
|
||||||
|
syn match makeTarget "^[~A-Za-z0-9_./$()%*@-][A-Za-z0-9_./\t $()%*@-]*::\=\s*$"
|
||||||
|
\ contains=makeIdent,makeSpecTarget,makeComment
|
||||||
|
\ skipnl nextgroup=makeCommands,makeCommandError
|
||||||
|
|
||||||
syn region makeSpecTarget transparent matchgroup=makeSpecTarget start="^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>\s*:\{1,2}[^:=]"rs=e-1 end="[^\\]$" keepend contains=makeIdent,makeSpecTarget,makeNextLine,makeComment skipnl nextGroup=makeCommands
|
syn region makeSpecTarget transparent matchgroup=makeSpecTarget
|
||||||
syn match makeSpecTarget "^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>\s*::\=\s*$" contains=makeIdent,makeComment skipnl nextgroup=makeCommands,makeCommandError
|
\ start="^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>\s*:\{1,2}[^:=]"rs=e-1
|
||||||
|
\ end="[^\\]$" keepend
|
||||||
|
\ contains=makeIdent,makeSpecTarget,makeNextLine,makeComment skipnl nextGroup=makeCommands
|
||||||
|
syn match makeSpecTarget "^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>\s*::\=\s*$"
|
||||||
|
\ contains=makeIdent,makeComment
|
||||||
|
\ skipnl nextgroup=makeCommands,makeCommandError
|
||||||
|
|
||||||
syn match makeCommandError "^\s\+\S.*" contained
|
syn match makeCommandError "^\s\+\S.*" contained
|
||||||
syn region makeCommands start=";"hs=s+1 start="^\t" end="^[^\t#]"me=e-1,re=e-1 end="^$" contained contains=makeCmdNextLine,makeSpecial,makeComment,makeIdent,makePreCondit,makeDefine,makeDString,makeSString nextgroup=makeCommandError
|
syn region makeCommands contained start=";"hs=s+1 start="^\t"
|
||||||
|
\ end="^[^\t#]"me=e-1,re=e-1 end="^$"
|
||||||
|
\ contains=makeCmdNextLine,makeSpecial,makeComment,makeIdent,makePreCondit,makeDefine,makeDString,makeSString
|
||||||
|
\ nextgroup=makeCommandError
|
||||||
syn match makeCmdNextLine "\\\n."he=e-1 contained
|
syn match makeCmdNextLine "\\\n."he=e-1 contained
|
||||||
|
|
||||||
|
" some directives
|
||||||
|
syn match makePreCondit "^ *\(ifn\=\(eq\|def\)\>\|else\(\s\+ifn\=\(eq\|def\)\)\=\>\|endif\>\)"
|
||||||
|
syn match makeInclude "^ *[-s]\=include\s.*$"
|
||||||
|
syn match makeStatement "^ *vpath"
|
||||||
|
syn match makeExport "^ *\(export\|unexport\)\>"
|
||||||
|
syn match makeOverride "^ *override"
|
||||||
" Statements / Functions (GNU make)
|
" Statements / Functions (GNU make)
|
||||||
syn match makeStatement contained "(\(abspath\|addprefix\|addsuffix\|and\|basename\|call\|dir\|error\|eval\|file\|filter-out\|filter\|findstring\|firstword\|flavor\|foreach\|guile\|if\|info\|join\|lastword\|notdir\|or\|origin\|patsubst\|realpath\|shell\|sort\|strip\|subst\|suffix\|value\|warning\|wildcard\|word\|wordlist\|words\)\>"ms=s+1
|
syn match makeStatement contained "(\(abspath\|addprefix\|addsuffix\|and\|basename\|call\|dir\|error\|eval\|file\|filter-out\|filter\|findstring\|firstword\|flavor\|foreach\|guile\|if\|info\|join\|lastword\|notdir\|or\|origin\|patsubst\|realpath\|shell\|sort\|strip\|subst\|suffix\|value\|warning\|wildcard\|word\|wordlist\|words\)\>"ms=s+1
|
||||||
|
|
||||||
@ -103,6 +113,9 @@ syn sync match makeCommandSync groupthere makeCommands "^[A-Za-z0-9_./$()%-][A-Z
|
|||||||
|
|
||||||
hi def link makeNextLine makeSpecial
|
hi def link makeNextLine makeSpecial
|
||||||
hi def link makeCmdNextLine makeSpecial
|
hi def link makeCmdNextLine makeSpecial
|
||||||
|
hi link makeOverride makeStatement
|
||||||
|
hi link makeExport makeStatement
|
||||||
|
|
||||||
hi def link makeSpecTarget Statement
|
hi def link makeSpecTarget Statement
|
||||||
if !exists("make_no_commands")
|
if !exists("make_no_commands")
|
||||||
hi def link makeCommands Number
|
hi def link makeCommands Number
|
||||||
|
@ -214,9 +214,9 @@ syn cluster vimFuncBodyList contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,
|
|||||||
syn match vimFunction "\<fu\%[nction]!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody
|
syn match vimFunction "\<fu\%[nction]!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody
|
||||||
|
|
||||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f'
|
if exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f'
|
||||||
syn region vimFuncBody contained fold start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList
|
syn region vimFuncBody contained fold start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\|enddef\>\)" contains=@vimFuncBodyList
|
||||||
else
|
else
|
||||||
syn region vimFuncBody contained start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList
|
syn region vimFuncBody contained start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\|enddef\>\)" contains=@vimFuncBodyList
|
||||||
endif
|
endif
|
||||||
syn match vimFuncVar contained "a:\(\K\k*\|\d\+\)"
|
syn match vimFuncVar contained "a:\(\K\k*\|\d\+\)"
|
||||||
syn match vimFuncSID contained "\c<sid>\|\<s:"
|
syn match vimFuncSID contained "\c<sid>\|\<s:"
|
||||||
|
Loading…
Reference in New Issue
Block a user