mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Allow whitespace to term non-quoted string
This commit is contained in:
@@ -361,7 +361,7 @@ t true
|
||||
f false
|
||||
tstr "true"
|
||||
tkey = two
|
||||
fkey = five
|
||||
fkey = five # This should be a string
|
||||
`
|
||||
|
||||
func TestNonQuotedStrings(t *testing.T) {
|
||||
@@ -389,6 +389,9 @@ func TestNonQuotedStrings(t *testing.T) {
|
||||
{itemString, "two", 12},
|
||||
{itemKey, "fkey", 13},
|
||||
{itemString, "five", 13},
|
||||
{itemCommentStart, "", 13},
|
||||
{itemText, " This should be a string", 13},
|
||||
|
||||
{itemEOF, "", 14},
|
||||
}
|
||||
lx := lex(noquotes)
|
||||
|
||||
Reference in New Issue
Block a user