fix: preserve linear PowerShell tokenization

This commit is contained in:
haelyra
2026-09-05 17:47:26 -04:00
parent 99668f0ef5
commit db88758cbd
@@ -944,11 +944,11 @@ function parseStatements(input) {
wordHasQuotedContent && !wordHasUnquotedContent ? wordQuoteKind : null wordHasQuotedContent && !wordHasUnquotedContent ? wordQuoteKind : null
); );
segmentTokenSources.push(wordSource); segmentTokenSources.push(wordSource);
segmentInlineValueQuoteKinds = [...segmentInlineValueQuoteKinds, segmentInlineValueQuoteKinds.push(
wordInlineValueQuoteClosed && wordInlineValueQuoteKind !== 'mixed' wordInlineValueQuoteClosed && wordInlineValueQuoteKind !== 'mixed'
? wordInlineValueQuoteKind ? wordInlineValueQuoteKind
: null : null
]; );
} }
word = ''; word = '';
wordSource = ''; wordSource = '';