mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +00:00
fix ImportDots
This commit is contained in:
parent
cbc4cb286b
commit
aa101e4f26
2 changed files with 3 additions and 3 deletions
|
@ -266,7 +266,7 @@ ImportFromLocation: (Option<ast::Int>, Option<ast::Identifier>) = {
|
|||
|
||||
ImportDots: ast::Int = {
|
||||
"..." => ast::Int::new(3),
|
||||
"." => ast::Int::new(3),
|
||||
"." => ast::Int::new(1),
|
||||
};
|
||||
|
||||
ImportAsNames: Vec<ast::Alias> = {
|
||||
|
|
4
parser/src/python.rs
generated
4
parser/src/python.rs
generated
|
@ -1,5 +1,5 @@
|
|||
// auto-generated: "lalrpop 0.20.0"
|
||||
// sha3: 7764ff3f82c4bfb364f8e2c55698c0cf314d591d7aeacd8abf4c9dfe354d25e2
|
||||
// sha3: 0198c5dceea306627c61f209b8fb7f17dffba455b06a7ba59f55447f864b84db
|
||||
use crate::{
|
||||
ast,
|
||||
lexer::{LexicalError, LexicalErrorType},
|
||||
|
@ -37335,7 +37335,7 @@ fn __action60<
|
|||
(_, __0, _): (TextSize, token::Tok, TextSize),
|
||||
) -> ast::Int
|
||||
{
|
||||
ast::Int::new(3)
|
||||
ast::Int::new(1)
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue