Change position
This commit is contained in:
parent
ced173d80f
commit
b407b21cde
@ -229,7 +229,7 @@ ParseReturn parse_expr(vector<Token> tokens) {
|
||||
InnerNode new_node = {
|
||||
.type=type,
|
||||
.children={node, ret.node},
|
||||
.pos=get_node_pos(ret.node)
|
||||
.pos=last_token.pos
|
||||
};
|
||||
node = new_node;
|
||||
} catch (const ParseException& pex) {
|
||||
@ -290,7 +290,7 @@ ParseReturn parse_t(vector<Token> tokens) {
|
||||
InnerNode new_node = {
|
||||
.type=type,
|
||||
.children={node, ret.node},
|
||||
.pos=get_node_pos(ret.node)
|
||||
.pos=last_token.pos
|
||||
};
|
||||
node = new_node;
|
||||
} catch (const ParseException& pex) {
|
||||
|
Loading…
Reference in New Issue
Block a user