mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
parent
978857e0c2
commit
b0b57a2a6a
@ -2,7 +2,7 @@
|
|||||||
" Language: git config file
|
" Language: git config file
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Filenames: gitconfig, .gitconfig, *.git/config
|
" Filenames: gitconfig, .gitconfig, *.git/config
|
||||||
" Last Change: 2010 May 21
|
" Last Change: 2019 Sep 27
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
@ -13,7 +13,7 @@ setlocal iskeyword-=_
|
|||||||
syn case ignore
|
syn case ignore
|
||||||
syn sync minlines=10
|
syn sync minlines=10
|
||||||
|
|
||||||
syn match gitconfigComment "[#;].*"
|
syn match gitconfigComment "[#;].*" contains=@Spell
|
||||||
syn match gitconfigSection "\%(^\s*\)\@<=\[[a-z0-9.-]\+\]"
|
syn match gitconfigSection "\%(^\s*\)\@<=\[[a-z0-9.-]\+\]"
|
||||||
syn match gitconfigSection '\%(^\s*\)\@<=\[[a-z0-9.-]\+ \+\"\%([^\\"]\|\\.\)*"\]'
|
syn match gitconfigSection '\%(^\s*\)\@<=\[[a-z0-9.-]\+ \+\"\%([^\\"]\|\\.\)*"\]'
|
||||||
syn match gitconfigVariable "\%(^\s*\)\@<=\a\k*\%(\s*\%([=#;]\|$\)\)\@=" nextgroup=gitconfigAssignment skipwhite
|
syn match gitconfigVariable "\%(^\s*\)\@<=\a\k*\%(\s*\%([=#;]\|$\)\)\@=" nextgroup=gitconfigAssignment skipwhite
|
||||||
|
Loading…
Reference in New Issue
Block a user