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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rules with new lines #10

Open
edubart opened this issue Sep 6, 2020 · 0 comments
Open

Rules with new lines #10

edubart opened this issue Sep 6, 2020 · 0 comments

Comments

@edubart
Copy link

edubart commented Sep 6, 2020

Currently you can't break a line after the rule declaration, for example this works:

storage_class_specifier <- `typedef` /
  `extern` /
  `static` /
  `register`

but this doesn't:

storage_class_specifier <-
  `typedef` /
  `extern` /
  `static` /
  `register`

fails with:

caribay/parser.lua:170: Error at line 10, column 1: Valid expression expected

Motivation: Sometimes I have to use some large named rules and is more readable to start it in a new line.

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

No branches or pull requests

2 participants