File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
src/main/kotlin/com/github/xepozz/toon/language/parser Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11users[2]{id,name,role}:
2- 1,Alice,admin
3- 2,Bob,user
4-
5- key: value
2+ 1,Alice,admin # row 1
3+ 2,Bob,user # row 2
Original file line number Diff line number Diff line change 1+ users[2]{id,name,role}:
2+ 1,Alice,admin
3+ 2,Bob,user
4+
5+ key: value
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ private entry ::=
4343 object_field
4444 | table
4545 | list_item
46- | COMMENT
4746 | EOL
4847
4948object_field ::= key DELIMITER field_value {
@@ -91,11 +90,11 @@ field_names ::= key (COMMA key)*
9190table_data ::= table_data_inline | table_data_multiline
9291
9392table_data_inline ::= table_data_value
94- table_data_multiline ::= EOL INDENT table_data_multiline_item (EOL table_data_multiline_item)* EOL? DEDENT {
93+ table_data_multiline ::= EOL INDENT table_data_multiline_item (EOL | table_data_multiline_item)* DEDENT {
9594 pin = 2
9695}
9796
98- private table_data_multiline_item ::= table_data_value | COMMENT
97+ private table_data_multiline_item ::= table_data_value
9998private table_data_value ::= value_list
10099
101100table_row ::= value (COMMA value)*
You can’t perform that action at this time.
0 commit comments