Replace comment marker ; with #
This commit is contained in:
parent
27a5ace1ea
commit
c83b78aef7
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "20231102"
|
||||
version = "20231215"
|
||||
author = "Emery Hemingway"
|
||||
description = "data model and serialization format"
|
||||
license = "Unlicense"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -259,7 +259,7 @@ const parser = peg("Schema", p: ParseState):
|
|||
|
||||
id <- Alpha * *Alnum
|
||||
|
||||
Comment <- ';' * @'\n'
|
||||
Comment <- '#' * @'\n'
|
||||
|
||||
S <- *(Space | Comment)
|
||||
|
||||
|
|
Loading…
Reference in New Issue