view runtime/syntax/testdir/input/vim_syntax.vim @ 34086:29432c35ce31

runtime(vim): Update syntax file (#13671) Commit: https://github.com/vim/vim/commit/c79646dfb10126f4ef22734d8713f2352197435e Author: dkearns <dougkearns@gmail.com> Date: Fri Jan 5 08:58:48 2024 +1100 runtime(vim): Update syntax file (https://github.com/vim/vim/issues/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>
author Christian Brabandt <cb@256bit.org>
date Thu, 04 Jan 2024 23:00:05 +0100
parents
children 60e1e94a1b0e
line wrap: on
line source

" 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