extern blocks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user