forked from NomicFoundation/slang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unreserve pragma keywords in all versions
More context: NomicFoundation#661 (comment)
- Loading branch information
1 parent
4341597
commit 89ae5bb
Showing
12 changed files
with
122 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@nomicfoundation/slang": patch | ||
--- | ||
|
||
unreserve pragma keywords in all versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 15 additions & 3 deletions
18
crates/solidity/outputs/cargo/slang_solidity/src/generated/language.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
crates/solidity/outputs/cargo/tests/src/cst_output/generated/VariableDeclarationStatement.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
...olidity/outputs/spec/generated/public/01-file-structure/03-pragma-directives.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...ots/cst_output/VariableDeclarationStatement/keyword_abicoder/generated/0.4.11-success.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This file is generated automatically by infrastructure scripts. Please don't edit by hand. | ||
|
||
Source: > | ||
1 │ // Always valid as an identifier (never reserved): │ 0..50 | ||
2 │ uint abicoder; │ 51..65 | ||
Errors: [] | ||
|
||
Tree: | ||
- (VariableDeclarationStatement): # "// Always valid as an identifier (never reserved):..." (0..66) | ||
- (variable_type꞉ VariableDeclarationType) ► (variant꞉ TypeName) ► (variant꞉ ElementaryType): # "// Always valid as an identifier (never reserved):..." (0..55) | ||
- (LeadingTrivia): # "// Always valid as an identifier (never reserved):..." (0..51) | ||
- (SingleLineComment): "// Always valid as an identifier (never reserved):" # (0..50) | ||
- (EndOfLine): "\n" # (50..51) | ||
- (variant꞉ UintKeyword): "uint" # (51..55) | ||
- (LeadingTrivia) ► (Whitespace): " " # (55..56) | ||
- (name꞉ Identifier): "abicoder" # (56..64) | ||
- (semicolon꞉ Semicolon): ";" # (64..65) | ||
- (TrailingTrivia) ► (EndOfLine): "\n" # (65..66) |
2 changes: 2 additions & 0 deletions
2
...dity/testing/snapshots/cst_output/VariableDeclarationStatement/keyword_abicoder/input.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Always valid as an identifier (never reserved): | ||
uint abicoder; |
19 changes: 19 additions & 0 deletions
19
...cst_output/VariableDeclarationStatement/keyword_experimental/generated/0.4.11-success.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This file is generated automatically by infrastructure scripts. Please don't edit by hand. | ||
|
||
Source: > | ||
1 │ // Always valid as an identifier (never reserved): │ 0..50 | ||
2 │ uint experimental; │ 51..69 | ||
Errors: [] | ||
|
||
Tree: | ||
- (VariableDeclarationStatement): # "// Always valid as an identifier (never reserved):..." (0..70) | ||
- (variable_type꞉ VariableDeclarationType) ► (variant꞉ TypeName) ► (variant꞉ ElementaryType): # "// Always valid as an identifier (never reserved):..." (0..55) | ||
- (LeadingTrivia): # "// Always valid as an identifier (never reserved):..." (0..51) | ||
- (SingleLineComment): "// Always valid as an identifier (never reserved):" # (0..50) | ||
- (EndOfLine): "\n" # (50..51) | ||
- (variant꞉ UintKeyword): "uint" # (51..55) | ||
- (LeadingTrivia) ► (Whitespace): " " # (55..56) | ||
- (name꞉ Identifier): "experimental" # (56..68) | ||
- (semicolon꞉ Semicolon): ";" # (68..69) | ||
- (TrailingTrivia) ► (EndOfLine): "\n" # (69..70) |
2 changes: 2 additions & 0 deletions
2
.../testing/snapshots/cst_output/VariableDeclarationStatement/keyword_experimental/input.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Always valid as an identifier (never reserved): | ||
uint experimental; |
19 changes: 19 additions & 0 deletions
19
...ots/cst_output/VariableDeclarationStatement/keyword_solidity/generated/0.4.11-success.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This file is generated automatically by infrastructure scripts. Please don't edit by hand. | ||
|
||
Source: > | ||
1 │ // Always valid as an identifier (never reserved): │ 0..50 | ||
2 │ uint solidity; │ 51..65 | ||
Errors: [] | ||
|
||
Tree: | ||
- (VariableDeclarationStatement): # "// Always valid as an identifier (never reserved):..." (0..66) | ||
- (variable_type꞉ VariableDeclarationType) ► (variant꞉ TypeName) ► (variant꞉ ElementaryType): # "// Always valid as an identifier (never reserved):..." (0..55) | ||
- (LeadingTrivia): # "// Always valid as an identifier (never reserved):..." (0..51) | ||
- (SingleLineComment): "// Always valid as an identifier (never reserved):" # (0..50) | ||
- (EndOfLine): "\n" # (50..51) | ||
- (variant꞉ UintKeyword): "uint" # (51..55) | ||
- (LeadingTrivia) ► (Whitespace): " " # (55..56) | ||
- (name꞉ Identifier): "solidity" # (56..64) | ||
- (semicolon꞉ Semicolon): ";" # (64..65) | ||
- (TrailingTrivia) ► (EndOfLine): "\n" # (65..66) |
2 changes: 2 additions & 0 deletions
2
...dity/testing/snapshots/cst_output/VariableDeclarationStatement/keyword_solidity/input.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Always valid as an identifier (never reserved): | ||
uint solidity; |