Commit a41f6e7 1 parent 1c2d49f commit a41f6e7 Copy full SHA for a41f6e7
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 @@ -196,7 +196,7 @@ class Preprocessor {
196
196
source = source . substring ( 0 , define . index - 1 ) + source . substring ( DEFINE . lastIndex ) ;
197
197
198
198
// continue processing on the next symbol
199
- KEYWORD . lastIndex = define . index ;
199
+ KEYWORD . lastIndex = define . index - 1 ;
200
200
}
201
201
}
202
202
@@ -228,7 +228,7 @@ class Preprocessor {
228
228
source = source . substring ( 0 , undef . index - 1 ) + source . substring ( UNDEF . lastIndex ) ;
229
229
230
230
// continue processing on the next symbol
231
- KEYWORD . lastIndex = undef . index ;
231
+ KEYWORD . lastIndex = undef . index - 1 ;
232
232
}
233
233
}
234
234
@@ -362,7 +362,7 @@ class Preprocessor {
362
362
source = source . substring ( 0 , include . index - 1 ) + includeSource + source . substring ( INCLUDE . lastIndex ) ;
363
363
364
364
// process the just included test
365
- KEYWORD . lastIndex = include . index ;
365
+ KEYWORD . lastIndex = include . index - 1 ;
366
366
} else {
367
367
console . error ( `Include "${ identifier } " not resolved while preprocessing a shader` , { source : originalSource } ) ;
368
368
error = true ;
You can’t perform that action at this time.
0 commit comments