mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-08 07:37:48 +02:00
fix: preserve linear PowerShell tokenization
This commit is contained in:
@@ -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 = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user