extern blocks

This commit is contained in:
Aleksey Kladov
2018-09-04 00:49:21 +03:00
parent 952da31f44
commit c3e28f0646
8 changed files with 1032 additions and 8 deletions

View File

@@ -227,6 +227,7 @@ fn extern_item_list(p: &mut Parser) {
assert!(p.at(L_CURLY));
let m = p.start();
p.bump();
mod_contents(p, true);
p.expect(R_CURLY);
m.complete(p, EXTERN_ITEM_LIST);
}

View File

@@ -127,7 +127,8 @@ fn validate_block_structure(root: SyntaxNodeRef) {
assert_eq!(
node.parent(),
pair.parent(),
"\nunpaired curleys:\n{}",
"\nunpaired curleys:\n{}\n{}\n",
root.text(),
utils::dump_tree(root),
);
assert!(