Skip to content

Commit

Permalink
TODO: location of dupped value should be location of the "dup" token
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Jan 14, 2024
1 parent 0f5aaf8 commit ac5bde0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions markut.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ func evalMarkutFile(path string) (context EvalContext, ok bool) {
return
}
n := len(argsStack)
// TODO: the location of the dupped value should be the location of the "dup" token
argsStack = append(argsStack, argsStack[n-1])
case "chapter":
args, err, argsStack = typeCheckArgs(token.Loc, argsStack, TokenString, TokenTimestamp)
Expand Down

0 comments on commit ac5bde0

Please sign in to comment.