annotate runtime/syntax/gitconfig.vim @ 21032:f80e822a310d v8.2.1067

patch 8.2.1067: expression "!expr->func()" does not work Commit: https://github.com/vim/vim/commit/0b1cd52ff6bf690388f892be686a91721a082e55 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 27 13:11:50 2020 +0200 patch 8.2.1067: expression "!expr->func()" does not work Problem: Expression "!expr->func()" does not work. Solution: Apply plus and minus earlier. (closes https://github.com/vim/vim/issues/6348)
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Jun 2020 13:15:03 +0200
parents 5c40013d45ee
children
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
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
5 " Last Change: 2019 Dec 05
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")
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
8 finish
1623
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 syn case ignore
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
12 syn sync minlines=10
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
13
18186
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2202
diff changeset
14 syn match gitconfigComment "[#;].*" contains=@Spell
1623
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
15 syn match gitconfigSection "\%(^\s*\)\@<=\[[a-z0-9.-]\+\]"
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
16 syn match gitconfigSection '\%(^\s*\)\@<=\[[a-z0-9.-]\+ \+\"\%([^\\"]\|\\.\)*"\]'
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
17 syn match gitconfigVariable "\%(^\s*\)\@<=\a[a-z0-9-]*\%(\s*\%([=#;]\|$\)\)\@=" nextgroup=gitconfigAssignment skipwhite
1623
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
18 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
19 syn keyword gitconfigBoolean true false yes no contained
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
20 syn match gitconfigNumber "\<\d\+\>" contained
1623
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
21 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
22 syn match gitconfigError +\\.+ contained
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
23 syn match gitconfigEscape +\\[\\"ntb]+ contained
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
24 syn match gitconfigEscape +\\$+ contained
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
25
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
26 hi def link gitconfigComment Comment
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
27 hi def link gitconfigSection Keyword
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
28 hi def link gitconfigVariable Identifier
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
29 hi def link gitconfigBoolean Boolean
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
30 hi def link gitconfigNumber Number
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
31 hi def link gitconfigString String
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
32 hi def link gitconfigDelim Delimiter
18818
5c40013d45ee Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
33 hi def link gitconfigEscape Special
1623
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
34 hi def link gitconfigError Error
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
35
53938adac247 updated for version 7.2a
vimboss
parents:
diff changeset
36 let b:current_syntax = "gitconfig"