Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow line-breaks inside of rules? 馃 #960

Open
increpare opened this issue Mar 10, 2023 · 2 comments
Open

allow line-breaks inside of rules? 馃 #960

increpare opened this issue Mar 10, 2023 · 2 comments

Comments

@increpare
Copy link
Owner

increpare commented Mar 10, 2023

I mean, there's no logically reason it should be impossible... where line-spacing is concerned I think no ambiguity can be introduced...just slightly awkward because it would probably require more up-front parsing, and you wouldn't know you're at the end of one rule until the start of the next...

@jcmiller11
Copy link

I feel like this would make helpful error reporting more difficult, in a case such as
[object1] [object2] -> [object3]
[object4] [object1] -> [object4] [object1]
which line do you say doesn't have the correct number of matches?

@increpare
Copy link
Owner Author

increpare commented Jun 28, 2023

the first :)

(but yes, it would be trickier - you'd have to look ahead, and probably use weird heuristics and awkward and unsolvable edge-cases)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants