Skip to content

Commit

Permalink
Parse out the line continuation character at the end of lines (#659)
Browse files Browse the repository at this point in the history
* make sure we only match for end of line

* handle line continuation characters

* fix the order and repair the parsing of backslash that was already there
  • Loading branch information
gcampbell-msft authored Nov 6, 2024
1 parent 3139cdd commit e931e3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Bug Fixes:
Improvements:

- Update signing to support VSCode extension signing. [#647](https://github.com/microsoft/vscode-makefile-tools/pull/647)
- Handle line continuation characters during parsing. [#628](https://github.com/microsoft/vscode-makefile-tools/issues/628)

## 0.10.26

Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export async function preprocessDryRunOutput(
// Some compiler/linker commands are split on multiple lines.
// At the end of every intermediate line is at least a space, then a \ and end of line.
// Concatenate all these lines to see clearly each command on one line.
let regexp: RegExp = /\s+\\$\n/gm;
let regexp: RegExp = /(\\$\n)|(\\\\$\n)/gm;
preprocessTasks.push(function (): void {
preprocessedDryRunOutputStr = preprocessedDryRunOutputStr.replace(
regexp,
Expand Down

0 comments on commit e931e3a

Please sign in to comment.