Many optimizations and new syntax files

This commit is contained in:
Zachary Yedidia
2017-03-26 19:14:03 -04:00
parent 56f3992cdb
commit 084c2be66c
103 changed files with 2079 additions and 342 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import (
"io/ioutil"
"strings"
"github.com/zyedidia/highlight"
"github.com/zyedidia/micro/cmd/micro/highlight"
)
func main() {
@@ -14,7 +14,7 @@ func main() {
hadErr := false
for _, f := range files {
if strings.HasSuffix(f.Name(), ".yaml") {
input, _ := ioutil.ReadFile("/Users/zachary/gocode/src/github.com/zyedidia/highlight/syntax_files/" + f.Name())
input, _ := ioutil.ReadFile(f.Name())
_, err := highlight.ParseDef(input)
if err != nil {
hadErr = true