This commit is contained in:
fubuki8087 2023-10-01 05:31:05 +08:00 committed by GitHub
parent 67f6df37be
commit b40b4267ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ func (l *Lexer) NextDynamicToken() (t token.Token) {
// used to skip any illegal token if inside parenthesis, used to be able to set custom regexp inside a func.
func (l *Lexer) readIdentifierFuncArgument() string {
pos := l.pos
for resolveTokenType(l.ch) != token.RPAREN {
for resolveTokenType(l.ch) != token.RPAREN && l.ch != 0 {
l.readChar()
}