From f48e89d06e4ac1aff0e5da1befd1f55fe4394857 Mon Sep 17 00:00:00 2001 From: sebastianHi Date: Fri, 11 Oct 2024 12:36:28 +0200 Subject: [PATCH] Update tbt.pest there is no necessity to have a comment in the beginning --- src/tbt.pest | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tbt.pest b/src/tbt.pest index 647fd71..fdba68c 100644 --- a/src/tbt.pest +++ b/src/tbt.pest @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: 2023 German Aerospace Center (DLR) // SPDX-License-Identifier: Apache-2.0 -Specification = { COMMENT ~ Constants ~ TBT } +Specification = { COMMENT* ~ Constants ~ TBT } // Constants Constants = { Constant* } @@ -68,4 +68,4 @@ Float = { ("-")? ~ Number ~ ("." ~ Number)? } Word = { Letter~(Letter | Digit | Under)* } Number = { '0'..'9'+ } WHITESPACE = _{ " " | "\t" | "\r" | "\n"} -COMMENT = _{ ("/*" ~ (!"*/" ~ ANY)* ~ "*/") | ("//" ~(!("\n")~ANY)*~ "\n"? ) } \ No newline at end of file +COMMENT = _{ ("/*" ~ (!"*/" ~ ANY)* ~ "*/") | ("//" ~(!("\n")~ANY)*~ "\n"? ) }