Closed zkat closed 9 months ago
So I suggested this specifically, and like it better than disallowing #
entirely from idents; I like KDL's generally quite wide-open ident grammar.
Having given it thought overnight, I think this can be understood as the same as the current prohibition of "looking like a number" that prevents you from starting an ident with 0
or +0
, but allows signs and digits anywhere else in the ident. Similarly, idents would be prevented from "looking like a raw string".
This would also satisfy @garrisonhh's suggested invariant that all token types can be identified in their first two characters.
(#241 fixes this; I name-dropped the discussion rather than this issue in the PR.)
This has been fixed because raw strings now start with a plain #"
, without the r
e
Discussed in https://github.com/kdl-org/kdl/discussions/200