blob: 917ce4db965ac35947c679209c9ed61b0953d706 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
//! To do.
use crate::tokenizer::Event;
pub fn link(events: &mut [Event], index: usize) {
events[index - 2].next = Some(index);
events[index].previous = Some(index - 2);
}
|