Mercurial > vim
view runtime/syntax/gitconfig.vim @ 18221:d27060eba45f v8.1.2105
patch 8.1.2105: MS-Windows: system() may crash
Commit: https://github.com/vim/vim/commit/2886dccebaec2da55e5a99bd88d44ae4217dee6e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 1 12:10:25 2019 +0200
patch 8.1.2105: MS-Windows: system() may crash
Problem: MS-Windows: system() may crash.
Solution: Do not use "itmp" when it is NULL. (Yasuhiro Matsumoto,
closes #5005)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 01 Oct 2019 12:15:03 +0200 |
parents | 03b854983b14 |
children | 5c40013d45ee |
line wrap: on
line source
" Vim syntax file " Language: git config file " Maintainer: Tim Pope <vimNOSPAM@tpope.org> " Filenames: gitconfig, .gitconfig, *.git/config " Last Change: 2019 Sep 27 if exists("b:current_syntax") finish endif setlocal iskeyword+=- setlocal iskeyword-=_ syn case ignore syn sync minlines=10 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 syn region gitconfigAssignment matchgroup=gitconfigNone start=+=\s*+ skip=+\\+ end=+\s*$+ contained contains=gitconfigBoolean,gitconfigNumber,gitConfigString,gitConfigEscape,gitConfigError,gitconfigComment keepend syn keyword gitconfigBoolean true false yes no contained syn match gitconfigNumber "\d\+" contained syn region gitconfigString matchgroup=gitconfigDelim start=+"+ skip=+\\+ end=+"+ matchgroup=gitconfigError end=+[^\\"]\%#\@!$+ contained contains=gitconfigEscape,gitconfigEscapeError syn match gitconfigError +\\.+ contained syn match gitconfigEscape +\\[\\"ntb]+ contained syn match gitconfigEscape +\\$+ contained hi def link gitconfigComment Comment hi def link gitconfigSection Keyword hi def link gitconfigVariable Identifier hi def link gitconfigBoolean Boolean hi def link gitconfigNumber Number hi def link gitconfigString String hi def link gitconfigDelim Delimiter hi def link gitconfigEscape Delimiter hi def link gitconfigError Error let b:current_syntax = "gitconfig"