From 79bd4762d825682665bc3735f085cba01934fb30 Mon Sep 17 00:00:00 2001 From: Uli Franke Date: Thu, 6 Feb 2020 23:29:32 +0100 Subject: [PATCH] Improved line splitting of built-in include parser after commenting on a pull request :) --- src/arduino/intellisense.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arduino/intellisense.ts b/src/arduino/intellisense.ts index 2a202b9c..706104e7 100644 --- a/src/arduino/intellisense.ts +++ b/src/arduino/intellisense.ts @@ -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