1
0
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:
Hirohito Higashi
2025-04-27 15:28:30 +02:00
committed by Christian Brabandt
parent 411ae580a9
commit fbe4a8f5c0
32 changed files with 53 additions and 49 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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'

View File

@@ -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//'

View File

@@ -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

View File

@@ -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

View File

@@ -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