diff --git a/token/token.go b/token/token.go index 49430237..182f4bea 100644 --- a/token/token.go +++ b/token/token.go @@ -623,7 +623,7 @@ func IsNeedQuoted(value string) bool { } first := value[0] switch first { - case '*', '&', '[', '{', '}', ']', ',', '!', '|', '>', '%', '\'', '"': + case '*', '&', '[', '{', '}', ']', ',', '!', '|', '>', '%', '\'', '"', '@': return true } last := value[len(value)-1] diff --git a/token/token_test.go b/token/token_test.go index 3e148701..4f5764ff 100644 --- a/token/token_test.go +++ b/token/token_test.go @@ -117,6 +117,7 @@ func TestIsNeedQuoted(t *testing.T) { "off", "Off", "OFF", + "@test", } for i, test := range needQuotedTests { if !token.IsNeedQuoted(test) {