debugger: Detect error
Former-commit-id: 1ea605eeab1a7b8e6645fe11d7b32c4c7dff0750
This commit is contained in:
parent
2238c7a72f
commit
4c75970512
|
@ -4,7 +4,7 @@ use nom;
|
||||||
use nom::branch::alt;
|
use nom::branch::alt;
|
||||||
use nom::bytes::complete::{tag, take_while_m_n};
|
use nom::bytes::complete::{tag, take_while_m_n};
|
||||||
use nom::character::complete::{alphanumeric1, char, digit1, multispace0, multispace1};
|
use nom::character::complete::{alphanumeric1, char, digit1, multispace0, multispace1};
|
||||||
use nom::combinator::{map, map_res};
|
use nom::combinator::{map, map_res, cut};
|
||||||
use nom::error::{context, convert_error, ParseError, VerboseError};
|
use nom::error::{context, convert_error, ParseError, VerboseError};
|
||||||
use nom::multi::separated_list;
|
use nom::multi::separated_list;
|
||||||
use nom::sequence::{preceded, separated_pair, terminated, tuple};
|
use nom::sequence::{preceded, separated_pair, terminated, tuple};
|
||||||
|
@ -81,7 +81,7 @@ fn parse_assignment<'a, E: ParseError<&'a str>>(i: &'a str) -> IResult<&str, Exp
|
||||||
separated_pair(
|
separated_pair(
|
||||||
parse_value,
|
parse_value,
|
||||||
preceded(multispace0, char('=')),
|
preceded(multispace0, char('=')),
|
||||||
preceded(multispace0, parse_value),
|
cut(preceded(multispace0, parse_value)),
|
||||||
),
|
),
|
||||||
|(lvalue, rvalue)| Expr::Assignment(lvalue, rvalue),
|
|(lvalue, rvalue)| Expr::Assignment(lvalue, rvalue),
|
||||||
),
|
),
|
||||||
|
|
Reference in a new issue