Replace comment marker ; with #

This commit is contained in:
Emery Hemingway 2023-12-15 21:45:27 +02:00
parent 27a5ace1ea
commit c83b78aef7
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "20231102"
version = "20231215"
author = "Emery Hemingway"
description = "data model and serialization format"
license = "Unlicense"

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 ☭ Emery Hemingway
# SPDX-FileCopyrightText: ☭ Emery Hemingway
# SPDX-License-Identifier: Unlicense
## NPEG rules for Preserves.
@ -14,7 +14,7 @@ grammar "Preserves":
Value <-
(ws * (Record | Collection | Atom | Embedded | Compact)) |
(ws * Annotation) |
(ws * ';' * @'\n' * Value)
(ws * '#' * @'\n' * Value)
Collection <- Sequence | Dictionary | Set

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 ☭ Emery Hemingway
# SPDX-FileCopyrightText: ☭ Emery Hemingway
# SPDX-License-Identifier: Unlicense
import std/[hashes, options, os, parseopt, streams, strutils, tables]

View File

@ -259,7 +259,7 @@ const parser = peg("Schema", p: ParseState):
id <- Alpha * *Alnum
Comment <- ';' * @'\n'
Comment <- '#' * @'\n'
S <- *(Space | Comment)