- Revised code example

- Added new lexers and revised existing
This commit is contained in:
Jesse Portnoy
2023-07-16 23:44:37 +01:00
parent 3e2e307e62
commit 571529568c
9 changed files with 55 additions and 5 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ func DetectFiletype(defs []*Def, filename string, firstLine []byte) *Def {
return d
}
if len(d.ftdetect) > 1 {
if d.ftdetect[1].MatchString(string(firstLine)) {
return d
}
if d.ftdetect[1].MatchString(string(firstLine)) {
return d
}
}
}