1
0
forked from aniani/vim

runtime(vim): Update base-syntax, match tuples

Tuples were introduced in commit 9cb865e.  See PR #16776.

fixes: #16965
closes: #16935

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-03-28 19:36:37 +01:00
committed by Christian Brabandt
parent 532c5aec6f
commit 722fbd1554
60 changed files with 846 additions and 640 deletions

View File

@@ -1,4 +1,7 @@
" Vim lambda expressions
" VIM_TEST_SETUP hi link vimLambdaOperator Todo
" VIM_TEST_SETUP hi link vimLambdaBrace Todo
" VIM_TEST_SETUP hi link vimFuncParam Identifier
let expr = 42
@@ -56,12 +59,17 @@ let Foo = {x,
\ z -> expr}
let Foo = {
"\ comment
\ x,
"\ comment
\ y,
"\ comment
\ z
"\ comment
\ ->
"\ comment
\ expr
"\ comment
\ }
let Foo = {-> [
@@ -94,6 +102,7 @@ let Foo = {-> {-> #{
\ b: 83
\}}}
" :help lambda
:let F = {arg1, arg2 -> arg1 - arg2}