Replace comment marker ; with #
This commit is contained in:
parent
27a5ace1ea
commit
c83b78aef7
|
@ -1,6 +1,6 @@
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "20231102"
|
version = "20231215"
|
||||||
author = "Emery Hemingway"
|
author = "Emery Hemingway"
|
||||||
description = "data model and serialization format"
|
description = "data model and serialization format"
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: 2021 ☭ Emery Hemingway
|
# SPDX-FileCopyrightText: ☭ Emery Hemingway
|
||||||
# SPDX-License-Identifier: Unlicense
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
## NPEG rules for Preserves.
|
## NPEG rules for Preserves.
|
||||||
|
@ -14,7 +14,7 @@ grammar "Preserves":
|
||||||
Value <-
|
Value <-
|
||||||
(ws * (Record | Collection | Atom | Embedded | Compact)) |
|
(ws * (Record | Collection | Atom | Embedded | Compact)) |
|
||||||
(ws * Annotation) |
|
(ws * Annotation) |
|
||||||
(ws * ';' * @'\n' * Value)
|
(ws * '#' * @'\n' * Value)
|
||||||
|
|
||||||
Collection <- Sequence | Dictionary | Set
|
Collection <- Sequence | Dictionary | Set
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: 2022 ☭ Emery Hemingway
|
# SPDX-FileCopyrightText: ☭ Emery Hemingway
|
||||||
# SPDX-License-Identifier: Unlicense
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
import std/[hashes, options, os, parseopt, streams, strutils, tables]
|
import std/[hashes, options, os, parseopt, streams, strutils, tables]
|
||||||
|
|
|
@ -259,7 +259,7 @@ const parser = peg("Schema", p: ParseState):
|
||||||
|
|
||||||
id <- Alpha * *Alnum
|
id <- Alpha * *Alnum
|
||||||
|
|
||||||
Comment <- ';' * @'\n'
|
Comment <- '#' * @'\n'
|
||||||
|
|
||||||
S <- *(Space | Comment)
|
S <- *(Space | Comment)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue