@@ -85,7 +85,10 @@ export function HighlightRulesSelector(
85
85
const ChapterKeywordSelector = ( ) => {
86
86
const output = [ ]
87
87
if ( id >= 1 ) {
88
- output . push ( 'import' , 'const' , 'else' , 'if' , 'return' , 'function' , 'debugger' )
88
+ output . push ( 'import' , 'as' , 'const' , 'else' , 'if' , 'return' , 'function' , 'debugger' )
89
+ }
90
+ if ( id >= 2 ) {
91
+ output . push ( 'export' )
89
92
}
90
93
if ( id >= 3 ) {
91
94
output . push ( 'while' , 'for' , 'break' , 'continue' , 'let' )
@@ -95,6 +98,9 @@ export function HighlightRulesSelector(
95
98
96
99
const ChapterAndVariantForbiddenWordSelector = ( ) => {
97
100
const forbiddenWords = [ ]
101
+ if ( id < 2 ) {
102
+ forbiddenWords . push ( 'export' )
103
+ }
98
104
if ( id < 3 ) {
99
105
forbiddenWords . push ( 'while' , 'for' , 'break' , 'continue' , 'let' )
100
106
}
@@ -131,7 +137,7 @@ export function HighlightRulesSelector(
131
137
'variable.language' :
132
138
'this|arguments|' + // Pseudo
133
139
'var|yield|async|await|with|switch|throw|try|eval|' + // forbidden words
134
- 'class|enum|extends|super|export| implements|private|public|' +
140
+ 'class|enum|extends|super|implements|private|public|' +
135
141
'interface|package|protected|static|in|of|instanceof|new|' +
136
142
'case|catch|default|delete|do|finally|' +
137
143
ChapterAndVariantForbiddenWordSelector ( )
0 commit comments