updated dependencies and golangci-lint to v2

This commit is contained in:
Gani Georgiev
2025-04-12 20:04:04 +03:00
parent d9af1475ef
commit 4cc797071b
18 changed files with 93 additions and 109 deletions
+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
}
}