mirror of
https://github.com/git/git.git
synced 2026-01-11 21:33:13 +09:00
Merge branch 'lo/userdiff-gitconfig'
* lo/userdiff-gitconfig: userdiff: add builtin driver for INI files
This commit is contained in:
commit
7b7fe0a898
5
t/t4018/ini-section
Normal file
5
t/t4018/ini-section
Normal file
@ -0,0 +1,5 @@
|
||||
[RIGHT]
|
||||
# comment
|
||||
; comment
|
||||
name = value
|
||||
ChangeMe
|
||||
5
t/t4018/ini-section-noindent
Normal file
5
t/t4018/ini-section-noindent
Normal file
@ -0,0 +1,5 @@
|
||||
[RIGHT]
|
||||
# comment
|
||||
; comment
|
||||
name = value
|
||||
ChangeMe
|
||||
4
t/t4018/ini-section-same-line
Normal file
4
t/t4018/ini-section-same-line
Normal file
@ -0,0 +1,4 @@
|
||||
[RIGHT] name = value
|
||||
# comment
|
||||
; comment
|
||||
ChangeMe
|
||||
12
t/t4018/ini-subsection
Normal file
12
t/t4018/ini-subsection
Normal file
@ -0,0 +1,12 @@
|
||||
[LEFT]
|
||||
|
||||
[LEFT "CENTER"]
|
||||
# comment
|
||||
; comment
|
||||
name = value
|
||||
|
||||
[LEFT "RIGHT"]
|
||||
# comment
|
||||
; comment
|
||||
name = value
|
||||
ChangeMe
|
||||
12
t/t4018/ini-subsection-noindent
Normal file
12
t/t4018/ini-subsection-noindent
Normal file
@ -0,0 +1,12 @@
|
||||
[LEFT]
|
||||
|
||||
[LEFT "CENTER"]
|
||||
# comment
|
||||
; comment
|
||||
name = value
|
||||
|
||||
[LEFT "RIGHT"]
|
||||
# comment
|
||||
; comment
|
||||
name = value
|
||||
ChangeMe
|
||||
@ -211,6 +211,10 @@ PATTERNS("html",
|
||||
"^[ \t]*(<[Hh][1-6]([ \t].*)?>.*)$",
|
||||
/* -- */
|
||||
"[^<>= \t]+"),
|
||||
PATTERNS("ini",
|
||||
"^[ \t]*\\[[^]]+\\]",
|
||||
/* -- */
|
||||
"[^ \t]+"),
|
||||
PATTERNS("java",
|
||||
"!^[ \t]*(catch|do|for|if|instanceof|new|return|switch|throw|while)\n"
|
||||
/* Class, enum, interface, and record declarations */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user