File tree Expand file tree Collapse file tree 6 files changed +431
-253
lines changed
Expand file tree Collapse file tree 6 files changed +431
-253
lines changed Original file line number Diff line number Diff line change @@ -53,26 +53,36 @@ DO : 'do';
5353DOUBLE : ' double' ;
5454ELSE : ' else' ;
5555ENUM : ' enum' ;
56+ EXPORTS : ' exports' ;
5657EXTENDS : ' extends' ;
5758FINAL : ' final' ;
5859FINALLY : ' finally' ;
5960FLOAT : ' float' ;
6061FOR : ' for' ;
61- IF : ' if' ;
6262GOTO : ' goto' ;
63+ IF : ' if' ;
6364IMPLEMENTS : ' implements' ;
6465IMPORT : ' import' ;
6566INSTANCEOF : ' instanceof' ;
6667INT : ' int' ;
6768INTERFACE : ' interface' ;
6869LONG : ' long' ;
70+ MODULE : ' module' ;
6971NATIVE : ' native' ;
7072NEW : ' new' ;
73+ NON_SEALED : ' non-sealed' ;
74+ OPEN : ' open' ;
75+ OPENS : ' opens' ;
7176PACKAGE : ' package' ;
77+ PERMITS : ' permits' ;
7278PRIVATE : ' private' ;
7379PROTECTED : ' protected' ;
80+ PROVIDES : ' provides' ;
7481PUBLIC : ' public' ;
82+ RECORD : ' record' ;
83+ REQUIRES : ' requires' ;
7584RETURN : ' return' ;
85+ SEALED : ' sealed' ;
7686SHORT : ' short' ;
7787STATIC : ' static' ;
7888STRICTFP : ' strictfp' ;
@@ -82,38 +92,19 @@ SYNCHRONIZED : 'synchronized';
8292THIS : ' this' ;
8393THROW : ' throw' ;
8494THROWS : ' throws' ;
95+ TO : ' to' ;
8596TRANSIENT : ' transient' ;
97+ TRANSITIVE : ' transitive' ;
8698TRY : ' try' ;
99+ USES : ' uses' ;
100+ VAR : ' var' ; // reserved type name
87101VOID : ' void' ;
88102VOLATILE : ' volatile' ;
103+ WHEN : ' when' ;
89104WHILE : ' while' ;
90-
91- // Module related keywords
92- MODULE : ' module' ;
93- OPEN : ' open' ;
94- REQUIRES : ' requires' ;
95- EXPORTS : ' exports' ;
96- OPENS : ' opens' ;
97- TO : ' to' ;
98- USES : ' uses' ;
99- PROVIDES : ' provides' ;
100105WITH : ' with' ;
101- TRANSITIVE : ' transitive' ;
102-
103- // Local Variable Type Inference
104- VAR : ' var' ; // reserved type name
105-
106- // Switch Expressions
107106YIELD : ' yield' ; // reserved type name from Java 14
108107
109- // Records
110- RECORD : ' record' ;
111-
112- // Sealed Classes
113- SEALED : ' sealed' ;
114- PERMITS : ' permits' ;
115- NON_SEALED : ' non-sealed' ;
116-
117108// Literals
118109
119110DECIMAL_LITERAL : (' 0' | [1-9] (Digits? | ' _' + Digits)) [lL]?;
@@ -213,7 +204,7 @@ IDENTIFIER: Letter LetterOrDigit*;
213204fragment ExponentPart: [eE] [+-]? Digits;
214205
215206fragment EscapeSequence:
216- ' \\ ' ' u005c' ? [btnfr " '\\ ]
207+ ' \\ ' ' u005c' ? [bstnfr " '\\ ]
217208 | '\\ ' 'u005c'? ([0-3]? [0-7])? [0-7]
218209 | '\\ ' 'u'+ HexDigit HexDigit HexDigit HexDigit
219210;
You can’t perform that action at this time.
0 commit comments