From 16d973c7b0d2ad97753535ed741c772189fc7016 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 27 Dec 2019 00:02:13 +0100 Subject: [PATCH] ATS uses inline comments with '//' as separator Signed-off-by: Knut Ahlers --- genericUnmarshaller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genericUnmarshaller.go b/genericUnmarshaller.go index 183cec2..ce6e753 100644 --- a/genericUnmarshaller.go +++ b/genericUnmarshaller.go @@ -13,8 +13,8 @@ import ( ) var ( - singleLineValue = `^\s*%s\s?:\s?([^#]+)(?:$|#)` - arrayLineValue = `^\s*%s(\[([0-9]*)\])?\s?:\s?([^#]+)(?:$|#)` + singleLineValue = `^\s*%s\s?:\s?([^#]+?)(?:$|#|//)` + arrayLineValue = `^\s*%s(\[([0-9]*)\])?\s?:\s?([^#]+?)(?:$|#|//)` ) func genericUnmarshal(in []byte, out interface{}, unit *Unit) error {