forked from aniani/vim
runtime(doc): Fix notation of "Vim script" and "Vim9 script"
closes: #17213 Signed-off-by: Hirohito Higashi <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
411ae580a9
commit
fbe4a8f5c0
@@ -1486,7 +1486,7 @@ syn match vim9SearchDelim '^\s*\zs:[/?]\|[/?]$' contained contains=vimCmdSep
|
||||
syn region vimGlobal matchgroup=Statement start='\<g\%[lobal]!\=/' skip='\\.' end='/' skipwhite nextgroup=vimSubst1
|
||||
syn region vimGlobal matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' end='/' skipwhite nextgroup=vimSubst1
|
||||
|
||||
" Vim9 Script Regions: {{{2
|
||||
" Vim9 script Regions: {{{2
|
||||
" ==================
|
||||
|
||||
if s:vim9script
|
||||
|
@@ -5,10 +5,11 @@
|
||||
" Version: 0.1.18
|
||||
" URL: http://www.vim.org/scripts/script.php?script_id=945
|
||||
" Last Change: 2021 Feb 03
|
||||
" 2025 Apr 27 by Vim Project correct Vim script spelling
|
||||
|
||||
" THE ORIGINAL AUTHOR'S NOTES:
|
||||
"
|
||||
" This is my very first vim script, I hope to have
|
||||
" This is my very first Vim script, I hope to have
|
||||
" done it the right way.
|
||||
"
|
||||
" I must directly or indirectly thank the author of java.vim and ruby.vim:
|
||||
|
@@ -149,7 +149,7 @@ def Foo()
|
||||
enddef
|
||||
|
||||
|
||||
# Issue #16227 (Vimscript ternary expression highlighting)
|
||||
# Issue #16227 (Vim script ternary expression highlighting)
|
||||
|
||||
var foo = 'foo' # comment
|
||||
var bar = foo == 'foo' ? 'bar' : 'baz'
|
||||
|
@@ -7,7 +7,7 @@ clearmatches()
|
||||
echo "Foo" | clearmatches()
|
||||
|
||||
|
||||
# Issue 16721 (vimscript highlight of builtin function after |)
|
||||
# Issue 16721 (Vim script highlight of builtin function after |)
|
||||
|
||||
&directory = $'{$MYVIMDIR}/.data/swap/'
|
||||
&backupdir = $'{$MYVIMDIR}/.data/backup//'
|
||||
|
@@ -99,7 +99,7 @@ def Foo(
|
||||
z: string = "zed")
|
||||
enddef
|
||||
|
||||
" Issue #16243 (vimscript def parameters syntax highlight is wrong)
|
||||
" Issue #16243 (Vim script def parameters syntax highlight is wrong)
|
||||
|
||||
def Test(lines: list<number> = [line('.'), line('.')]): void
|
||||
enddef
|
||||
|
@@ -177,7 +177,7 @@ function Foo(...)
|
||||
endfunction
|
||||
|
||||
|
||||
" Issue #16243 (vimscript def parameters syntax highlight is wrong)
|
||||
" Issue #16243 (Vim script def parameters syntax highlight is wrong)
|
||||
|
||||
function Test(lines = [line('.'), line('.')])
|
||||
endfunction
|
||||
|
@@ -1546,7 +1546,7 @@ syn match vim9SearchDelim '^\s*\zs:[/?]\|[/?]$' contained contains=vimCmdSep
|
||||
syn region vimGlobal matchgroup=Statement start='\<g\%[lobal]!\=/' skip='\\.' end='/' skipwhite nextgroup=vimSubst1
|
||||
syn region vimGlobal matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' end='/' skipwhite nextgroup=vimSubst1
|
||||
|
||||
" Vim9 Script Regions: {{{2
|
||||
" Vim9 script Regions: {{{2
|
||||
" ==================
|
||||
|
||||
if s:vim9script
|
||||
|
Reference in New Issue
Block a user