mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 16:37:20 -04:00
gofmt
This commit is contained in:
+2
-2
@@ -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,7 +16,7 @@ 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, ";"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user