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

Commit 79bd476

Browse files
elektronikworkshopadiazulay
authored andcommitted
Improved line splitting of built-in include parser after commenting on a pull request :)
1 parent 16e861d commit 79bd476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arduino/intellisense.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class CompilerCmdParserEngineGcc
206206
const match = child.stdout.match(includeregex);
207207
if (match) {
208208
// Split list by newlines. Should be platform independent
209-
let lines = match[1].split(/\s*(?:\r|\n)\s*/);
209+
let lines = match[1].split(/\s*(?:\r|\r\n|\n)\s*/);
210210
// Filter out empty elements (in most cases only the last element)
211211
lines = lines.filter((val: string) => val !== "");
212212
// Add built-in includes to command line includes

0 commit comments

Comments
 (0)