summaryrefslogtreecommitdiff
path: root/runtime/syntax/gitconfig.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-27 19:34:08 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-27 19:34:08 +0200
commit5be4ceecea5520265066eac972460ebb1cdf05e7 (patch)
tree818c9471879de5c5fb956c21f125cc8de9a42341 /runtime/syntax/gitconfig.vim
parenta7f6c3cf071bb6267e0bd2eb3d27ca240381ba87 (diff)
downloadvim-git-5be4ceecea5520265066eac972460ebb1cdf05e7.tar.gz
Update runtime files.
Diffstat (limited to 'runtime/syntax/gitconfig.vim')
-rw-r--r--runtime/syntax/gitconfig.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/gitconfig.vim b/runtime/syntax/gitconfig.vim
index c6c56f77b..668764eac 100644
--- a/runtime/syntax/gitconfig.vim
+++ b/runtime/syntax/gitconfig.vim
@@ -2,7 +2,7 @@
" Language: git config file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" Filenames: gitconfig, .gitconfig, *.git/config
-" Last Change: 2010 May 21
+" Last Change: 2019 Sep 27
if exists("b:current_syntax")
finish
@@ -13,7 +13,7 @@ setlocal iskeyword-=_
syn case ignore
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 gitconfigVariable "\%(^\s*\)\@<=\a\k*\%(\s*\%([=#;]\|$\)\)\@=" nextgroup=gitconfigAssignment skipwhite