added mod_tag (fix)

master
Paulo Simão 2021-11-02 21:47:36 -03:00
parent 2665d10c09
commit 5ff5942b4f
2 changed files with 2 additions and 1 deletions

1
lib.go
View File

@ -116,6 +116,7 @@ func Tokens(str string) ([]string, error) {
sb = strings.Builder{} sb = strings.Builder{}
mode = MODE_STR mode = MODE_STR
} }
mode = MODE_STR
case MODE_TAG: case MODE_TAG:
sb.WriteRune(a) sb.WriteRune(a)
params = append(params, sb.String()) params = append(params, sb.String())

View File

@ -11,7 +11,7 @@ func TestLines(t *testing.T) {
//lines, err := Lines("; \";\" ;;") //lines, err := Lines("; \";\" ;;")
//Lines("a\nb\\\\nc") //Lines("a\nb\\\\nc")
lines, err := Lines(` lines, err := Lines(`
go build -o main.exe -ldflags="a=1 b=2" ./main.go "A STR"
`) `)
//lines, err := Lines(` //lines, err := Lines(`
//go build -o main.exe -ldflags="a=1 b=2" ./main.go //go build -o main.exe -ldflags="a=1 b=2" ./main.go