mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 08:27:19 -04:00
gofmt
This commit is contained in:
+3
-3
@@ -3,8 +3,8 @@ package highlight
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getDefs(t *testing.T, filename string, data []byte, highlight_lexer string) *Def {
|
func getDefs(t *testing.T, filename string, data []byte, highlight_lexer string) *Def {
|
||||||
@@ -16,8 +16,8 @@ func getDefs(t *testing.T, filename string, data []byte, highlight_lexer string)
|
|||||||
if lerr != nil {
|
if lerr != nil {
|
||||||
t.Errorf("Couldn't get defs from '%s', error: %v\n", syn_dir, lerr)
|
t.Errorf("Couldn't get defs from '%s', error: %v\n", syn_dir, lerr)
|
||||||
}
|
}
|
||||||
if (len(warnings) > 0){
|
if len(warnings) > 0 {
|
||||||
t.Errorf("Parsing ended with warnings: '%s'\n", strings.Join(warnings,";"))
|
t.Errorf("Parsing ended with warnings: '%s'\n", strings.Join(warnings, ";"))
|
||||||
}
|
}
|
||||||
|
|
||||||
ResolveIncludes(defs)
|
ResolveIncludes(defs)
|
||||||
|
|||||||
Reference in New Issue
Block a user