···262262263263pub fn find_pattern(tokens: &[Token], pat: String) -> Option<(usize, usize)> {
264264 // (startpoint, length)
265265+ // FIXME: this fucks up when the begining of a pattern is repeated
266266+ // ex. searching for "[[hello]]" in "[[[[hello]]" yeilds None
267267+ // ALSO, this is a coarse search, operating on tokens only, not the characters within
265268 let split_pattern = split_to_tokens(pat, 0);
266269 let mut pattern_index: usize = 0;
267270 let mut token_index: usize = 0;