runtime(vim): Update syntax file (#13671)
Support multiline :syntax commands.
Match :syn-cchar option in :syn-{keyword,region}.
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/syntax/testdir/input/vim_syntax.vim b/runtime/syntax/testdir/input/vim_syntax.vim
new file mode 100644
index 0000000..e8c112c
--- /dev/null
+++ b/runtime/syntax/testdir/input/vim_syntax.vim
@@ -0,0 +1,75 @@
+" Vim :syntax highlighting
+
+syn keyword testKeyword
+ \ conceal
+ \ cchar=&
+ \ contained
+ \ containedin=testContainer
+ \ nextgroup=testNext,@testCluster
+ \ transparent
+ \ skipwhite
+ \ skipempty
+ \ skipnl
+ \ keyword1
+ \ keyword2
+ \ keyword3
+
+syn match testMatch
+ \ "pattern"
+ \ conceal
+ \ cchar=&
+ \ contained
+ \ containedin=testContainer
+ \ nextgroup=testNext,@testCluster
+ \ transparent
+ \ skipwhite
+ \ skipempty
+ \ skipnl
+ \ contains=testContained1,testContained2
+ \ fold
+ \ display
+ \ extend
+ \ excludenl
+ \ keepend
+
+syn region testRegion
+ \ start="start-pattern"
+ \ end="end-pattern"
+ \ skip="skip-pattern"
+ \ contained
+ \ conceal
+ \ cchar=&
+ \ contained
+ \ containedin=testContainer
+ \ nextgroup=testNext,@testCluster
+ \ transparent
+ \ skipwhite
+ \ skipempty
+ \ skipnl
+ \ contains=testContained1,testContained2
+ \ oneline
+ \ fold
+ \ display
+ \ extend
+ \ concealends
+ \ excludenl
+ \ keepend
+
+syn cluster testCluster
+ \ contains=testContained1,testContained2,testContained3
+
+syn cluster testCluster
+ \ add=testAdd
+ \ remove=testRemove
+
+
+" check multiline group list
+syn keyword testKeyword
+ \ nextgroup=
+ \ testNext ,
+ \ testNext2 ,
+ \ @testCluster
+ \ skipwhite
+ \ keyword4
+ \ keyword5
+ \ keyword6