Skip to content

Commit bbf1933

Browse files
authored
Fix #1046 - handle xsd as xml (#1067)
1 parent a9ea7b8 commit bbf1933

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/core/format.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var FormatByExtension = map[string][]string{
8888
`\.(?:swift)$`: {".c", "code"},
8989
`\.(?:ts|tsx)$`: {".ts", "code"},
9090
`\.(?:txt)$`: {".txt", "text"},
91-
`\.(?:xml)$`: {".xml", "markup"},
91+
`\.(?:xml|xsd)$`: {".xml", "markup"},
9292
`\.(?:yaml|yml)$`: {".yml", "data"},
9393
`\.(?:json)$`: {".json", "data"},
9494
`\.(?:toml)$`: {".toml", "data"},

internal/lint/lint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (l *Linter) lintFile(src string) lintResult {
197197
err = l.lintMDX(file)
198198
case ".rst":
199199
err = l.lintRST(file)
200-
case ".xml":
200+
case ".xml", ".xsd":
201201
err = l.lintXML(file)
202202
case ".dita":
203203
err = l.lintDITA(file)

0 commit comments

Comments
 (0)