Commit e101b08 1 parent 0e58330 commit e101b08 Copy full SHA for e101b08
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ class Preprocessor {
201
201
source = source . substring ( 0 , define . index - 1 ) + source . substring ( DEFINE . lastIndex ) ;
202
202
203
203
// continue processing on the next symbol
204
- KEYWORD . lastIndex = define . index ;
204
+ KEYWORD . lastIndex = define . index - 1 ;
205
205
}
206
206
}
207
207
@@ -233,7 +233,7 @@ class Preprocessor {
233
233
source = source . substring ( 0 , undef . index - 1 ) + source . substring ( UNDEF . lastIndex ) ;
234
234
235
235
// continue processing on the next symbol
236
- KEYWORD . lastIndex = undef . index ;
236
+ KEYWORD . lastIndex = undef . index - 1 ;
237
237
}
238
238
}
239
239
@@ -367,7 +367,7 @@ class Preprocessor {
367
367
source = source . substring ( 0 , include . index - 1 ) + includeSource + source . substring ( INCLUDE . lastIndex ) ;
368
368
369
369
// process the just included test
370
- KEYWORD . lastIndex = include . index ;
370
+ KEYWORD . lastIndex = include . index - 1 ;
371
371
} else {
372
372
console . error ( `Include "${ identifier } " not resolved while preprocessing ${ Preprocessor . sourceName } ` , { source : originalSource } ) ;
373
373
error = true ;
You can’t perform that action at this time.
0 commit comments