diff --git a/parser/Cargo.toml b/parser/Cargo.toml index 700bd7d..03c933f 100644 --- a/parser/Cargo.toml +++ b/parser/Cargo.toml @@ -26,6 +26,7 @@ rustpython-ast = { workspace = true } rustpython-parser-core = { workspace = true } itertools = { workspace = true } +is-macro = { workspace = true } log = { workspace = true } num-bigint = { workspace = true } num-traits = { workspace = true } diff --git a/parser/src/token.rs b/parser/src/token.rs index db5409c..e09b5b0 100644 --- a/parser/src/token.rs +++ b/parser/src/token.rs @@ -9,7 +9,7 @@ use num_bigint::BigInt; use std::fmt; /// The set of tokens the Python source code can be tokenized in. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, is_macro::Is)] pub enum Tok { /// Token value for a name, commonly known as an identifier. Name {