Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Improved line splitting of built-in include parser after commenting o…
Browse files Browse the repository at this point in the history
…n a pull request :)
  • Loading branch information
elektronikworkshop authored and adiazulay committed Jan 19, 2021
1 parent 16e861d commit 79bd476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arduino/intellisense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class CompilerCmdParserEngineGcc
const match = child.stdout.match(includeregex);
if (match) {
// Split list by newlines. Should be platform independent
let lines = match[1].split(/\s*(?:\r|\n)\s*/);
let lines = match[1].split(/\s*(?:\r|\r\n|\n)\s*/);
// Filter out empty elements (in most cases only the last element)
lines = lines.filter((val: string) => val !== "");
// Add built-in includes to command line includes
Expand Down

0 comments on commit 79bd476

Please sign in to comment.