Add support for including syntax file in each other

This commit is contained in:
Zachary Yedidia
2017-02-20 16:03:21 -05:00
parent feb6f0700e
commit 41e9b0079d
2 changed files with 50 additions and 10 deletions
+3 -1
View File
@@ -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()
}
}