mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-01 22:57:13 -04:00
Add support for including syntax file in each other
This commit is contained in:
+3
-1
@@ -28,6 +28,8 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
highlight.ResolveIncludes(defs)
|
||||
|
||||
fileSrc, _ := ioutil.ReadFile(os.Args[1])
|
||||
def := highlight.DetectFiletype(defs, os.Args[1], bytes.Split(fileSrc, []byte("\n"))[0])
|
||||
|
||||
@@ -73,7 +75,7 @@ func main() {
|
||||
colN++
|
||||
}
|
||||
if group, ok := matches[lineN][colN]; ok {
|
||||
if group == "" {
|
||||
if group == "default" || group == "" {
|
||||
color.Unset()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user