-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reinstate not_followed_by
and add to DecimalLiteral
also remove _
in dsl keywords.
#575
Reinstate not_followed_by
and add to DecimalLiteral
also remove _
in dsl keywords.
#575
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest checking the other places in the YAML grammar where we are using notFollowedBy
. For example, I just checked MultilineComment
, and because the new DSL doesn't use it, we fail to scan /* foo **/
. I suggest adding a test for that in crates/solidity/outputs/cargo/tests/src/scanner/mod.rs
.
a585e35
to
f57ee26
Compare
I have added it to the other items that have it in the yaml. This raises some issues, although not a regression:
|
4dc5e20
to
ffed3f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a small suggestion.
}) | ||
}}; | ||
} | ||
|
||
#[allow(unused_macros)] | ||
macro_rules! scan_not_followed_by { | ||
($stream:ident, $scanner:expr, $not_followed_by:expr) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I like how delimited by
tokens improve legibility of the DSL, maybe changing it to
($stream:ident, $scanner:expr, not followed by: $not_followed_by:expr)
would improve legibility of scan_not_followed_by
macro calls here?
}) | ||
}}; | ||
} | ||
|
||
#[allow(unused_macros)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this allow
still needed?
No description provided.