mirror of https://github.com/astral-sh/ruff
Update lalrpop to 0.20.0
This commit is contained in:
parent
e1f70100ac
commit
39b2dbe04d
|
|
@ -14,7 +14,7 @@ serde = ["dep:serde", "rustpython-compiler-core/serde"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
anyhow = { workspace = true }
|
anyhow = { workspace = true }
|
||||||
lalrpop = { version = "0.19.9", optional = true }
|
lalrpop = { version = "0.20.0", default-features = false, optional = true }
|
||||||
phf_codegen = "0.11.1"
|
phf_codegen = "0.11.1"
|
||||||
tiny-keccak = { version = "2", features = ["sha3"] }
|
tiny-keccak = { version = "2", features = ["sha3"] }
|
||||||
|
|
||||||
|
|
@ -31,7 +31,7 @@ unicode_names2 = { workspace = true }
|
||||||
|
|
||||||
unic-emoji-char = "0.9.0"
|
unic-emoji-char = "0.9.0"
|
||||||
unic-ucd-ident = "0.9.0"
|
unic-ucd-ident = "0.9.0"
|
||||||
lalrpop-util = "0.19.8"
|
lalrpop-util = { version = "0.20.0", default-features = false }
|
||||||
phf = "0.11.1"
|
phf = "0.11.1"
|
||||||
rustc-hash = "1.1.0"
|
rustc-hash = "1.1.0"
|
||||||
serde = { version = "1.0.133", optional = true, default-features = false, features = ["derive"] }
|
serde = { version = "1.0.133", optional = true, default-features = false, features = ["derive"] }
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ fn parse_error_from_lalrpop(
|
||||||
source_path,
|
source_path,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LalrpopError::UnrecognizedEOF { location, expected } => {
|
LalrpopError::UnrecognizedEof { location, expected } => {
|
||||||
// This could be an initial indentation error that we should ignore
|
// This could be an initial indentation error that we should ignore
|
||||||
let indent_error = expected == ["Indent"];
|
let indent_error = expected == ["Indent"];
|
||||||
if indent_error {
|
if indent_error {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue