gustavoaca1997/Caribay

Rules with new lines

Opened this issue · 0 comments

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.