1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 05:14:19 +00:00

ATS uses inline comments with '//' as separator

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-12-27 00:02:13 +01:00
parent 4231f1d922
commit 16d973c7b0
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -13,8 +13,8 @@ import (
) )
var ( var (
singleLineValue = `^\s*%s\s?:\s?([^#]+)(?:$|#)` singleLineValue = `^\s*%s\s?:\s?([^#]+?)(?:$|#|//)`
arrayLineValue = `^\s*%s(\[([0-9]*)\])?\s?:\s?([^#]+)(?:$|#)` arrayLineValue = `^\s*%s(\[([0-9]*)\])?\s?:\s?([^#]+?)(?:$|#|//)`
) )
func genericUnmarshal(in []byte, out interface{}, unit *Unit) error { func genericUnmarshal(in []byte, out interface{}, unit *Unit) error {