mirror of https://github.com/kdl-org/kdl.git
Only disallow necessary ident chars
Co-authored-by: Kat Marchán <kzm@zkat.tech>
This commit is contained in:
parent
ea1b33521a
commit
2dbcc2639a
2
SPEC.md
2
SPEC.md
|
|
@ -430,7 +430,7 @@ identifier := string | bare-identifier
|
||||||
bare-identifier := (unambiguous-ident | numberish-ident | stringish-ident) - keyword
|
bare-identifier := (unambiguous-ident | numberish-ident | stringish-ident) - keyword
|
||||||
unambiguous-ident := (identifier-char - digit - sign - "r") identifier-char*
|
unambiguous-ident := (identifier-char - digit - sign - "r") identifier-char*
|
||||||
numberish-ident := sign ((identifier-char - digit) identifier-char*)?
|
numberish-ident := sign ((identifier-char - digit) identifier-char*)?
|
||||||
stringish-ident := "r" ((identifier-char - [#"]) identifier-char*)?
|
stringish-ident := "r" ((identifier-char - "#") identifier-char*)?
|
||||||
identifier-char := unicode - linespace - [\/(){}<>;[]=,"]
|
identifier-char := unicode - linespace - [\/(){}<>;[]=,"]
|
||||||
keyword := boolean | 'null'
|
keyword := boolean | 'null'
|
||||||
prop := identifier '=' value
|
prop := identifier '=' value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue