0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

runtime(vim): Cleanup syntax tests

Improve formatting and naming consistency of the syntax tests.

closes: #17850

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-07-25 20:00:25 +02:00
committed by Christian Brabandt
parent e9d1259111
commit cced80dcbb
555 changed files with 1973 additions and 1787 deletions

View File

@@ -1,7 +1,7 @@
" Vim :function command
" list
" List
function
function Foo
@@ -13,7 +13,7 @@ function Foo | echo "Foo"
function Foo " comment
" definition
" Definition
" empty definition
function Foo()
@@ -111,7 +111,7 @@ function s:ls()
endfunction
" modifiers
" Modifiers
function Foo() range
endfunction
@@ -176,7 +176,7 @@ function Foo()
endfunction " comment
" parameters
" Parameters
function Foo(x, y, z, ...)
return 42
@@ -217,7 +217,7 @@ function Foo(
endfunction
" arguments
" Arguments
function Foo(a, b, c)
echo a:a a:b a:c
@@ -236,7 +236,7 @@ function Test(lines = [line('.'), line('.')])
endfunction
" comments
" Comments
function Foo()
" Legacy-script comment
@@ -245,13 +245,13 @@ function Foo()
endfunction
" command modifiers
" Command modifiers
silent! function Foo()
endfunction
" leading command separator
" Leading command separator
echo "Foo" | function Foo()
endfunction