mirror of
https://github.com/neovim/neovim.git
synced 2026-05-06 08:26:45 -04:00
938c1e2194
This reverts commit 86ae6858ababe1f80476368c617dc1812df5b781. related: vim/vim#19905 https://github.com/vim/vim/commit/86dcb1878cdbd0a8af61664b14f034398e319026 Co-authored-by: Christian Brabandt <cb@256bit.org>
30 lines
1.0 KiB
VimL
30 lines
1.0 KiB
VimL
" Vim syntax file
|
|
" Language: jj description
|
|
" Maintainer: Gregory Anders <greg@gpanders.com>
|
|
" Last Change: 2024 May 8
|
|
" 2025 Apr 17 by Vim Project (don't require space to start comments, #17130)
|
|
" 2026 Apr 09 by Vim Project (anchor status regex to beginning of line, #19879)
|
|
" 2026 Apr 09 by Vim Project (detect renames of files, #19879)
|
|
|
|
if exists('b:current_syntax')
|
|
finish
|
|
endif
|
|
|
|
syn match jjAdded "^JJ:\s\+\zsA\s.*" contained
|
|
syn match jjRemoved "^JJ:\s\+\zsD\s.*" contained
|
|
syn match jjChanged "^JJ:\s\+\zsM\s.*" contained
|
|
syn match jjRenamed "^JJ:\s\+\zsR\s.*" contained
|
|
|
|
syn region jjComment start="^JJ:" end="$" contains=jjAdded,jjRemoved,jjChanged,jjRenamed
|
|
|
|
syn include @jjCommitDiff syntax/diff.vim
|
|
syn region jjCommitDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^\%(diff --\|$\|@@\@!\|[^[:alnum:]\ +-]\S\@!\)\@=/ fold contains=@jjCommitDiff
|
|
|
|
hi def link jjComment Comment
|
|
hi def link jjAdded Added
|
|
hi def link jjRemoved Removed
|
|
hi def link jjChanged Changed
|
|
hi def link jjRenamed Changed
|
|
|
|
let b:current_syntax = 'jjdescription'
|