Skip to content

Commit

Permalink
Fix origin buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed May 29, 2020
1 parent abe15e4 commit c6ffce4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (s *Scanner) scanSingleQuote(ctx *Context) (tk *token.Token, pos int) {
if idx+1 < len(ctx.src) && ctx.src[idx+1] == '\'' {
// '' handle as ' character
value = append(value, c)
ctx.addOriginBuf(c)
idx++
continue
}
Expand Down

0 comments on commit c6ffce4

Please sign in to comment.