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
|
||||
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 :=
|
||||
((identifier-char - digit - sign - '.') identifier-char*)
|
||||
- disallowed-keyword-identifiers
|
||||
(identifier-char - digit - sign - '.') identifier-char*
|
||||
signed-ident :=
|
||||
sign ((identifier-char - digit - '.') identifier-char*)?
|
||||
dotted-ident :=
|
||||
|
|
|
|||
Loading…
Reference in New Issue