Closed denfren closed 11 months ago
Hi there!
Yes, your assumption is correct and this is indeed a bug. Since the attribute key is coming from the parser it should have span information attached.
FWIW, block identifiers are also affected. I did forget to propagate the span information when implementing detection for duplicate attribute keys in the parser.
Feel free to take a stab at fixing this if you like, it should be relatively straight forward (see the structure
parser in src/parser/structure.rs
).
Is this assertion correct? (it fails)
If this is confirmed and still open in about 2 weeks then i'll provide a PR with a fix attempt