Skip to content

Extracting a literal out of a Mage rule changes semantics #60

@samvv

Description

@samvv

If we're not careful about documenting certain features, we might trigger unexpected behavior.

In particular, one could argue that converting a literal to a token in a certain rule means that skip will be run before and after the token. The original rule did not make use of skip. Therefore the mage_extract_literals pass changes the semantics of the grammar.

The previous bug can be documented into a feature. The question is whether this is desirable.

Metadata

Metadata

Assignees

Labels

📚 documentationImprovements or additions to documentation🐛 bugSomething isn't working🔥 priority:highThis issue should be solved as soon as possible

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions