Files
org-vim/runtime/syntax/testdir/input/vim_ex_syntax.vim
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

178 lines
3.9 KiB
VimL
Raw Normal View History

" Vim :syntax command
syn match testMatch "pattern" contained " tail comment
" NOTE: comments not currently supported
syn keyword testKeyword keyword contained " tail comment
syn region testRegion start="start-pattern" skip="skip-pattern" end="end-pattern" contained " tail comment
" Multiline commands
2024-01-05 08:58:48 +11:00
syn keyword testKeyword
"\ OPTIONS
"\ conceal option
2024-01-05 08:58:48 +11:00
\ conceal
"\ cchar option
2024-01-05 08:58:48 +11:00
\ cchar=&
"\ contained option
2024-01-05 08:58:48 +11:00
\ contained
"\ containedin option
2024-01-05 08:58:48 +11:00
\ containedin=testContainer
"\ nextgroup option
\ nextgroup=testNext0,@testCluster
"\ transparent option
2024-01-05 08:58:48 +11:00
\ transparent
"\ skipwhite option
2024-01-05 08:58:48 +11:00
\ skipwhite
"\ skipempty option
2024-01-05 08:58:48 +11:00
\ skipempty
"\ skipnl option
2024-01-05 08:58:48 +11:00
\ skipnl
"\ KEYWORDS LIST
"\ keyword 1
2024-01-05 08:58:48 +11:00
\ keyword1
"\ keyword 2
2024-01-05 08:58:48 +11:00
\ keyword2
"\ keyword 3
2024-01-05 08:58:48 +11:00
\ keyword3
syn match testMatch
"\ MATCH PATTERN
"\ pattern start
\ /
"\ part 1 description
\pat1a .* pat1b
"\ part 2 description
\pat2a .* pat2b
"\ part 3 description
\pat3a .* pat3b
"\ pattern end
\/
"\ OPTIONS
"\ conceal option
2024-01-05 08:58:48 +11:00
\ conceal
"\ cchar option
2024-01-05 08:58:48 +11:00
\ cchar=&
"\ contained option
2024-01-05 08:58:48 +11:00
\ contained
"\ containedin option
2024-01-05 08:58:48 +11:00
\ containedin=testContainer
"\ nextgroup option
\ nextgroup=testNext0,@testCluster
"\ transparent option
2024-01-05 08:58:48 +11:00
\ transparent
"\ skipwhite option
2024-01-05 08:58:48 +11:00
\ skipwhite
"\ skipempty option
2024-01-05 08:58:48 +11:00
\ skipempty
"\ skipnl option
2024-01-05 08:58:48 +11:00
\ skipnl
"\ contains option
2024-01-05 08:58:48 +11:00
\ contains=testContained1,testContained2
"\ fold option
2024-01-05 08:58:48 +11:00
\ fold
"\ display option
2024-01-05 08:58:48 +11:00
\ display
"\ extend option
2024-01-05 08:58:48 +11:00
\ extend
"\ excludenl option
2024-01-05 08:58:48 +11:00
\ excludenl
"\ keepend option
2024-01-05 08:58:48 +11:00
\ keepend
syn region testRegion
"\ OPTIONS
"\ start option
2024-01-05 08:58:48 +11:00
\ start="start-pattern"
"\ skip option
2024-01-05 08:58:48 +11:00
\ skip="skip-pattern"
"\ end option
\ end="end-pattern"
"\ conceal option
2024-01-05 08:58:48 +11:00
\ conceal
"\ cchar option
2024-01-05 08:58:48 +11:00
\ cchar=&
"\ contained option
2024-01-05 08:58:48 +11:00
\ contained
"\ containedin option
2024-01-05 08:58:48 +11:00
\ containedin=testContainer
"\ nextgroup option
\ nextgroup=testNext0,@testCluster
"\ transparent option
2024-01-05 08:58:48 +11:00
\ transparent
"\ skipwhite option
2024-01-05 08:58:48 +11:00
\ skipwhite
"\ skipempty option
2024-01-05 08:58:48 +11:00
\ skipempty
"\ skipnl option
2024-01-05 08:58:48 +11:00
\ skipnl
"\ contains option
2024-01-05 08:58:48 +11:00
\ contains=testContained1,testContained2
"\ oneline option
2024-01-05 08:58:48 +11:00
\ oneline
"\ fold option
2024-01-05 08:58:48 +11:00
\ fold
"\ display option
2024-01-05 08:58:48 +11:00
\ display
"\ extend option
2024-01-05 08:58:48 +11:00
\ extend
"\ concealends option
2024-01-05 08:58:48 +11:00
\ concealends
"\ excludenl option
2024-01-05 08:58:48 +11:00
\ excludenl
"\ keepend option
2024-01-05 08:58:48 +11:00
\ keepend
syn cluster testCluster
"\ OPTIONS
"\ contains option
2024-01-05 08:58:48 +11:00
\ contains=testContained1,testContained2,testContained3
syn cluster testCluster
"\ OPTIONS
"\ add option
2024-01-05 08:58:48 +11:00
\ add=testAdd
"\ remove option
2024-01-05 08:58:48 +11:00
\ remove=testRemove
" multiline group list
syn keyword testNext0 keyword
syn keyword testNext1 keyword
syn keyword testNext2 keyword
syn keyword testNext3 keyword
syn keyword testNext4 keyword
syn keyword testNext5 keyword
syn keyword testNext6 keyword
syn keyword testNext7 keyword
syn keyword testNext8 keyword
syn keyword testNext9 keyword
2024-01-05 08:58:48 +11:00
syn keyword testKeyword
"\ nextgroup option
2024-01-05 08:58:48 +11:00
\ nextgroup=
"\ a comment
\ testNext0 , testNext1 ,
"\ a comment
\ testNext[2-8].* ,
"\ a comment
\ testNext9 , @testCluster skipwhite
"\ KEYWORDS LIST
2024-01-05 08:58:48 +11:00
\ keyword4
\ keyword5
\ keyword6
" leaking contained groups
" Example: runtime/syntax/zsh.vim
" "cluster" should not be highlighted outside of :syntax commands
function! s:ContainedGroup()
" ...
for cluster in ['markdownHighlight_zsh', 'zsh']
" ...
endfor
" ...
endfunction