Skip to content

Commit

Permalink
chore: refactor comment position
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Mar 24, 2024
1 parent ae52b02 commit 80bffc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/v2/goexpression/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ func (ep *ExpressionParser) Insert(pos token.Pos, tok token.Token, lit string) (
if actual != opener {
return false, ErrUnbalanced{tok}
}
// If we're closing a function, pop the function depth.
if tok == token.RBRACE {
// If we're closing a function, pop the function depth.
if len(ep.Stack) == ep.Fns.Peek() {
ep.Fns.Pop()
}
Expand Down

0 comments on commit 80bffc6

Please sign in to comment.