Skip to content

Commit 8367f69

Browse files
A4-Tackskevinmehall
authored andcommitted
Improve group span
1 parent ddb2126 commit 8367f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peg-macros/tokens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl FlatTokenStream {
4343
for tree in g.stream() {
4444
flatten(tokens, tree);
4545
}
46-
tokens.push(Token::End(g.delimiter(), g.span()));
46+
tokens.push(Token::End(g.delimiter(), g.span_close()));
4747

4848
let end_pos = tokens.len();
4949
tokens[start_pos] = Token::Begin(g, end_pos);

0 commit comments

Comments
 (0)