mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-23 21:18:20 +00:00
improve col_offset in new line and lalr
This commit is contained in:
parent
d5a208ca9d
commit
a5b59f3c9d
6 changed files with 34 additions and 34 deletions
|
@ -35,7 +35,7 @@ pub fn parse_program(source: &str, source_path: &str) -> Result<ast::Suite, Pars
|
|||
/// assert_eq!(
|
||||
/// expr,
|
||||
/// ast::Expr {
|
||||
/// location: ast::Location::new(1, 2),
|
||||
/// location: ast::Location::new(1, 0),
|
||||
/// end_location: Some(ast::Location::new(1, 5)),
|
||||
/// custom: (),
|
||||
/// node: ast::ExprKind::BinOp {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue