Caribay icon indicating copy to clipboard operation
Caribay copied to clipboard

Rules with new lines

Open edubart opened this issue 3 years ago • 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.

edubart avatar Sep 06 '20 10:09 edubart