1
0
Fork 0

Adding upstream version 2.6.3.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-18 22:58:26 +02:00
parent 4d8cd0ce4c
commit 2b08a89310
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
39 changed files with 2140 additions and 0 deletions

18
parser.go Normal file
View file

@ -0,0 +1,18 @@
package editorconfig
// Parser interface is responsible for the parsing of the ini file and the
// globbing patterns.
type Parser interface {
// ParseIni takes one .editorconfig (ini format) filename and returns its
// Editorconfig definition.
ParseIni(filename string) (*Editorconfig, error)
// ParseIni takes one .editorconfig (ini format) filename and returns its
// Editorconfig definition. In case of non fatal warnings, they are in
// a joined errors and might be ignored in some cases.
ParseIniGraceful(filename string) (*Editorconfig, error, error)
// FnmatchCase takes a pattern, a filename, and tells wether the given filename
// matches the globbing pattern.
FnmatchCase(pattern string, filename string) (bool, error)
}