File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ function! criticmarkup#Init()
44endfunction
55
66function ! criticmarkup#InjectHighlighting ()
7- syn region criticAddition matchgroup =criticAdd start =/ {++/ end =/ ++}/ concealends
8- syn region criticDeletion matchgroup =criticDel start =/ {--/ end =/ --}/ concealends
9- syn region criticSubstitutionDeletion start =/ {\~\~ / end =/ .\(\~ >\)\@ =/ keepend
10- syn region criticSubstitutionAddition start =/ \~ >/ end =/ \~\~ }/ keepend
7+ syn region criticAddition matchgroup =criticAdd start =/ {++/ end =/ ++}/ containedin = pandocDefinitionBlock concealends
8+ syn region criticDeletion matchgroup =criticDel start =/ {--/ end =/ --}/ containedin = pandocDefinitionBlock concealends
9+ syn region criticSubstitutionDeletion start =/ {\~\~ / end =/ .\(\~ >\)\@ =/ containedin = pandocDefinitionBlock keepend
10+ syn region criticSubstitutionAddition start =/ \~ >/ end =/ \~\~ }/ containedin = pandocDefinitionBlock keepend
1111 syn match criticSubstitutionDeletionMark / {\~\~ / contained containedin =criticSubstitutionDeletion conceal
1212 syn match criticSubstitutionAdditionMark / \~\~ }/ contained containedin =criticSubstitutionAddition conceal
13- syn region criticComment matchgroup =criticMeta start =/ {>>/ end =/ <<}/ concealends
14- syn region criticHighlight matchgroup =criticHighlighter start =/ {==/ end =/ ==}/ concealends
13+ syn region criticComment matchgroup =criticMeta start =/ {>>/ end =/ <<}/ containedin = pandocDefinitionBlock concealends
14+ syn region criticHighlight matchgroup =criticHighlighter start =/ {==/ end =/ ==}/ containedin = pandocDefinitionBlock concealends
1515
1616 hi criticAdd guibg= #00 ff00 guifg= #101010
1717 hi criticDel guibg= #ff0000 guifg= #ffffff
You can’t perform that action at this time.
0 commit comments