File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ module.exports.defineVisitor = function create(
301
301
tokenStore . getTokenAfter ( node )
302
302
303
303
/** @type {SourceCode.CursorWithSkipOptions } */
304
- const option = {
304
+ const cursorOptions = {
305
305
includeComments : true ,
306
306
filter : ( token ) =>
307
307
token != null &&
@@ -311,9 +311,11 @@ module.exports.defineVisitor = function create(
311
311
token . type === 'HTMLEndTagOpen' ||
312
312
token . type === 'HTMLComment' )
313
313
}
314
- for ( const token of endToken
315
- ? tokenStore . getTokensBetween ( node . startTag , endToken , option )
316
- : tokenStore . getTokensAfter ( node . startTag , option ) ) {
314
+ const contentTokens = endToken
315
+ ? tokenStore . getTokensBetween ( node . startTag , endToken , cursorOptions )
316
+ : tokenStore . getTokensAfter ( node . startTag , cursorOptions )
317
+
318
+ for ( const token of contentTokens ) {
317
319
ignoreTokens . add ( token )
318
320
}
319
321
ignoreTokens . add ( endToken )
You can’t perform that action at this time.
0 commit comments