Skip to content

Commit

Permalink
Update tbt.pest
Browse files Browse the repository at this point in the history
there is no necessity to have a comment in the beginning
  • Loading branch information
sebastianHi authored Oct 11, 2024
1 parent 742f2fa commit f48e89d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tbt.pest
Original file line number Diff line number Diff line change
@@ -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* }
Expand Down Expand Up @@ -68,4 +68,4 @@ Float = { ("-")? ~ Number ~ ("." ~ Number)? }
Word = { Letter~(Letter | Digit | Under)* }
Number = { '0'..'9'+ }
WHITESPACE = _{ " " | "\t" | "\r" | "\n"}
COMMENT = _{ ("/*" ~ (!"*/" ~ ANY)* ~ "*/") | ("//" ~(!("\n")~ANY)*~ "\n"? ) }
COMMENT = _{ ("/*" ~ (!"*/" ~ ANY)* ~ "*/") | ("//" ~(!("\n")~ANY)*~ "\n"? ) }

0 comments on commit f48e89d

Please sign in to comment.