updated dependencies and golangci-lint to v2

This commit is contained in:
Gani Georgiev committed 2025-04-12 20:05:21 +03:00
1 parent d9af1475ef
commit 4cc797071b
18 files changed
+93 -109

No files matched your search

+3 -2
View File
@@ -142,9 +142,10 @@ func (t *Tokenizer) readToken() (string, error) {
} else if !t.ignoreParenthesis && ch == ')' && parenthesis > 0 && quoteCh == eof {
parenthesis-- // closing parenthesis
} else if t.isQuoteRune(ch) {
if quoteCh == ch {
switch quoteCh {
case ch:
quoteCh = eof // closing quote
} else if quoteCh == eof {
case eof:
quoteCh = ch // opening quote
}
}