mirror of
https://github.com/alecthomas/chroma.git
synced 2025-11-23 22:24:39 +02:00
refactor: migrate a bunch more Go-based lexers to XML
Also rename some existing XML lexers to their canonical XML name.
This commit is contained in:
@@ -168,7 +168,7 @@ func NewXMLLexer(from fs.FS, path string) (*RegexLexer, error) {
|
||||
return 0
|
||||
}
|
||||
|
||||
if ok && config.Analyse.Single {
|
||||
if ok && config.Analyse.First {
|
||||
return float32(math.Min(float64(ra.score), 1.0))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user