Skip to content

Commit f2c9305

Browse files
authored
Merge pull request #13079 from uji/sort-grammer-rules
Sort grammar rules of SolidityLexer.g4
2 parents 8c87f58 + 5f6f353 commit f2c9305

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/grammar/SolidityLexer.g4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ ReservedKeywords:
99
| 'partial' | 'promise' | 'reference' | 'relocatable' | 'sealed' | 'sizeof' | 'static'
1010
| 'supports' | 'switch' | 'typedef' | 'typeof' | 'var';
1111

12-
Pragma: 'pragma' -> pushMode(PragmaMode);
1312
Abstract: 'abstract';
14-
Anonymous: 'anonymous';
1513
Address: 'address';
14+
Anonymous: 'anonymous';
1615
As: 'as';
1716
Assembly: 'assembly' -> pushMode(AssemblyBlockMode);
1817
Bool: 'bool';
@@ -30,13 +29,11 @@ Else: 'else';
3029
Emit: 'emit';
3130
Enum: 'enum';
3231
Error: 'error'; // not a real keyword
33-
Revert: 'revert'; // not a real keyword
3432
Event: 'event';
3533
External: 'external';
3634
Fallback: 'fallback';
3735
False: 'false';
3836
Fixed: 'fixed' | ('fixed' [1-9][0-9]* 'x' [1-9][0-9]*);
39-
From: 'from'; // not a real keyword
4037
/**
4138
* Bytes types of fixed length.
4239
*/
@@ -46,6 +43,7 @@ FixedBytes:
4643
'bytes17' | 'bytes18' | 'bytes19' | 'bytes20' | 'bytes21' | 'bytes22' | 'bytes23' | 'bytes24' |
4744
'bytes25' | 'bytes26' | 'bytes27' | 'bytes28' | 'bytes29' | 'bytes30' | 'bytes31' | 'bytes32';
4845
For: 'for';
46+
From: 'from'; // not a real keyword
4947
Function: 'function';
5048
Global: 'global'; // not a real keyword
5149
Hex: 'hex';
@@ -67,12 +65,14 @@ New: 'new';
6765
NumberUnit: 'wei' | 'gwei' | 'ether' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years';
6866
Override: 'override';
6967
Payable: 'payable';
68+
Pragma: 'pragma' -> pushMode(PragmaMode);
7069
Private: 'private';
7170
Public: 'public';
7271
Pure: 'pure';
7372
Receive: 'receive';
7473
Return: 'return';
7574
Returns: 'returns';
75+
Revert: 'revert'; // not a real keyword
7676
/**
7777
* Sized signed integer types.
7878
* int is an alias of int256.

0 commit comments

Comments
 (0)