mirror of https://github.com/kdl-org/kdl.git
Disallow -inf from being a signed-ident
Just moving the `- disallowed-keyword-identifiers` up to the parent production so it catches all the ident productions, to make any similar mistakes impossible.
This commit is contained in:
parent
ab92232126
commit
5d82f60407
|
|
@ -970,10 +970,11 @@ type := '(' node-space* string node-space* ')'
|
||||||
// Strings
|
// Strings
|
||||||
string := identifier-string | quoted-string | raw-string ¶
|
string := identifier-string | quoted-string | raw-string ¶
|
||||||
|
|
||||||
identifier-string := unambiguous-ident | signed-ident | dotted-ident
|
identifier-string :=
|
||||||
|
(unambiguous-ident | signed-ident | dotted-ident)
|
||||||
|
- disallowed-keyword-identifiers
|
||||||
unambiguous-ident :=
|
unambiguous-ident :=
|
||||||
((identifier-char - digit - sign - '.') identifier-char*)
|
(identifier-char - digit - sign - '.') identifier-char*
|
||||||
- disallowed-keyword-identifiers
|
|
||||||
signed-ident :=
|
signed-ident :=
|
||||||
sign ((identifier-char - digit - '.') identifier-char*)?
|
sign ((identifier-char - digit - '.') identifier-char*)?
|
||||||
dotted-ident :=
|
dotted-ident :=
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue