diff options
author | Aleksey Kladov <[email protected]> | 2018-09-03 22:49:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-03 22:49:21 +0100 |
commit | c3e28f06463854e4711c4c49a49c77d1e136969f (patch) | |
tree | 9f031e9b9b38e1136a019e67120398f47f199066 /crates/libsyntax2/src | |
parent | 952da31f44b717d5679c1c0baffcd998c0f67266 (diff) |
extern blocks
Diffstat (limited to 'crates/libsyntax2/src')
-rw-r--r-- | crates/libsyntax2/src/grammar/items/mod.rs | 1 | ||||
-rw-r--r-- | crates/libsyntax2/src/lib.rs | 3 |
2 files changed, 3 insertions, 1 deletions
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) { | |||
227 | assert!(p.at(L_CURLY)); | 227 | assert!(p.at(L_CURLY)); |
228 | let m = p.start(); | 228 | let m = p.start(); |
229 | p.bump(); | 229 | p.bump(); |
230 | mod_contents(p, true); | ||
230 | p.expect(R_CURLY); | 231 | p.expect(R_CURLY); |
231 | m.complete(p, EXTERN_ITEM_LIST); | 232 | m.complete(p, EXTERN_ITEM_LIST); |
232 | } | 233 | } |
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) { | |||
127 | assert_eq!( | 127 | assert_eq!( |
128 | node.parent(), | 128 | node.parent(), |
129 | pair.parent(), | 129 | pair.parent(), |
130 | "\nunpaired curleys:\n{}", | 130 | "\nunpaired curleys:\n{}\n{}\n", |
131 | root.text(), | ||
131 | utils::dump_tree(root), | 132 | utils::dump_tree(root), |
132 | ); | 133 | ); |
133 | assert!( | 134 | assert!( |