From c3e28f06463854e4711c4c49a49c77d1e136969f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 4 Sep 2018 00:49:21 +0300 Subject: extern blocks --- crates/libsyntax2/src/grammar/items/mod.rs | 1 + crates/libsyntax2/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/libsyntax2/src') diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs index e672aa419..5466146b4 100644 --- a/crates/libsyntax2/src/grammar/items/mod.rs +++ b/crates/libsyntax2/src/grammar/items/mod.rs @@ -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); } diff --git a/crates/libsyntax2/src/lib.rs b/crates/libsyntax2/src/lib.rs index ccf13e4ab..3b5115110 100644 --- a/crates/libsyntax2/src/lib.rs +++ b/crates/libsyntax2/src/lib.rs @@ -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!( -- cgit v1.2.3