mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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
@@ -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
|
||||
|
Reference in New Issue
Block a user