fix parser warnings
This commit is contained in:
parent
291d5724f2
commit
e0c3cf4407
1 changed files with 0 additions and 8 deletions
|
@ -545,14 +545,6 @@ fn read_exp(pos: &mut usize, input: &Vec<Token>, ends: &Vec<Token>, parse_ends:
|
|||
|
||||
fn check_continue(pos: &mut usize, input: &Vec<Token>, prev: ASTPart, op_ends: &Vec<Token>, parse_ends: &Vec<Token>, ctx: &Context) -> ASTPart {
|
||||
let token = &input[*pos];
|
||||
let mut next_token = &Token {
|
||||
typ: TokenType::OPEND,
|
||||
value: String::from("END"),
|
||||
pos: 0
|
||||
};
|
||||
if *pos+1 < input.len() {
|
||||
next_token = &input[*pos+1]
|
||||
}
|
||||
if is_end(token, &parse_ends) {
|
||||
return prev;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue