annotate runtime/syntax/gitconfig.vim @ 2075:903fcd726d90 v7.2.359

updated for version 7.2.359 Problem: Crash when using the Netbeans join command. Solution: Make sure the ml_flush_line() function is not used recursively. (Xavier de Gaye)
author Bram Moolenaar <bram@zimbu.org>
date Thu, 11 Feb 2010 18:54:43 +0100
parents 7bc41231fbc7
children f7579a31705c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1623
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
2 " Language: git config file
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1623
diff changeset
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
1623
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
4 " Filenames: gitconfig, .gitconfig, *.git/config
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1623
diff changeset
5 " Last Change: 2009 Dec 24
1623
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
6
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
8 finish
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
9 endif
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
10
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
11 setlocal iskeyword+=-
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
12 setlocal iskeyword-=_
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
13 syn case ignore
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
14 syn sync minlines=10
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
15
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
16 syn match gitconfigComment "[#;].*"
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
17 syn match gitconfigSection "\%(^\s*\)\@<=\[[a-z0-9.-]\+\]"
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
18 syn match gitconfigSection '\%(^\s*\)\@<=\[[a-z0-9.-]\+ \+\"\%([^\\"]\|\\.\)*"\]'
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
19 syn match gitconfigVariable "\%(^\s*\)\@<=\a\k*\%(\s*\%([=#;]\|$\)\)\@=" nextgroup=gitconfigAssignment skipwhite
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
20 syn region gitconfigAssignment matchgroup=gitconfigNone start=+=\s*+ skip=+\\+ end=+\s*$+ contained contains=gitconfigBoolean,gitconfigNumber,gitConfigString,gitConfigEscape,gitConfigError,gitconfigComment keepend
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
21 syn keyword gitconfigBoolean true false yes no contained
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
22 syn match gitconfigNumber "\d\+" contained
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
23 syn region gitconfigString matchgroup=gitconfigDelim start=+"+ skip=+\\+ end=+"+ matchgroup=gitconfigError end=+[^\\"]\%#\@!$+ contained contains=gitconfigEscape,gitconfigEscapeError
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
24 syn match gitconfigError +\\.+ contained
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
25 syn match gitconfigEscape +\\[\\"ntb]+ contained
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
26 syn match gitconfigEscape +\\$+ contained
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
27
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
28 hi def link gitconfigComment Comment
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
29 hi def link gitconfigSection Keyword
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
30 hi def link gitconfigVariable Identifier
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
31 hi def link gitconfigBoolean Boolean
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
32 hi def link gitconfigNumber Number
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
33 hi def link gitconfigString String
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
34 hi def link gitconfigDelim Delimiter
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
35 hi def link gitconfigEscape Delimiter
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
36 hi def link gitconfigError Error
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
37
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
38 let b:current_syntax = "gitconfig"