From 274ca90f52fdcb42199b6fe2cbbd521274686cdb Mon Sep 17 00:00:00 2001 From: asap2Go <96501510+asap2Go@users.noreply.github.com> Date: Thu, 10 Nov 2022 21:49:21 +0100 Subject: [PATCH] Update a2ml.go removed check for unexpected keywords as some might occur in the a2ml. --- a2l/a2ml.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/a2l/a2ml.go b/a2l/a2ml.go index 9ae5d94..fe16672 100644 --- a/a2l/a2ml.go +++ b/a2l/a2ml.go @@ -25,10 +25,6 @@ forLoop: } else if tok.current() == endA2mlToken { a2ml.formatSpecificationSet = true break forLoop - } else if isKeyword(tok.current()) { - err = errors.New("unexpected token " + tok.current()) - log.Err(err).Msg("a2ml could not be parsed") - break forLoop } else if !a2ml.formatSpecificationSet { a2ml.formatSpecification = a2ml.formatSpecification + spaceToken + tok.current() }