Skip to content

Commit

Permalink
nit: Make AbicoderKeyword casing in DSL v1 consistent with v0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Nov 14, 2023
1 parent 2df2c49 commit 294d4d0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions crates/solidity/inputs/language/src/dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ slang_grammar! {
lexical context Default = {

inline parser SolidityKeywordsOverAllVersions = (
ABICoderKeyword
AbicoderKeyword
| AbstractKeyword
| AddressKeyword
| AfterKeyword
Expand Down Expand Up @@ -165,7 +165,7 @@ slang_grammar! {
| GlobalKeyword
) ;

parser ABICoderPragma = (ABICoderKeyword Identifier) ;
parser ABICoderPragma = (AbicoderKeyword Identifier) ;

inline parser AddSubOperator = (Plus | Minus) ;

Expand Down Expand Up @@ -852,7 +852,7 @@ slang_grammar! {

// Keywords

scanner ABICoderKeyword = "abicoder" ;
scanner AbicoderKeyword = "abicoder" ;
scanner AbstractKeyword = "abstract" ;
scanner AddressKeyword = "address" ;
scanner AfterKeyword = "after" ;
Expand Down
2 changes: 1 addition & 1 deletion crates/solidity/outputs/cargo/crate/src/generated/kinds.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/solidity/outputs/cargo/crate/src/generated/language.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/solidity/outputs/npm/crate/src/generated/kinds.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/solidity/outputs/npm/crate/src/generated/language.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Tree:
- PragmaDirective (Rule): # 0..20 "pragma abicoder foo;"
- PragmaKeyword (Token): "pragma" # 0..6
- ABICoderPragma (Rule): # 6..19 " abicoder foo"
- ABICoderKeyword (Token): "abicoder" # 7..15
- AbicoderKeyword (Token): "abicoder" # 7..15
- Identifier (Token): "foo" # 16..19
- Semicolon (Token): ";" # 19..20

0 comments on commit 294d4d0

Please sign in to comment.