From b6ccb5927a20412976a54fd2215eb645092f98a8 Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Sat, 12 Sep 2020 00:13:58 +0100 Subject: [PATCH] fix comment lines are being detected as duplicate in validation --- src/domain/Script.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/domain/Script.ts b/src/domain/Script.ts index 4257b47e..9ca6c28b 100644 --- a/src/domain/Script.ts +++ b/src/domain/Script.ts @@ -41,6 +41,9 @@ function mayBeUniqueLine(codeLine: string): boolean { if (trimmed === ')' || trimmed === '(') { // "(" and ")" are used often in batch code return false; } + if (codeLine.startsWith(':: ') || codeLine.startsWith('REM ')) { // Is comment? + return false; + } return true; }