diff --git a/examples/syntest.rs b/examples/syntest.rs index b4386dbf..b2f83779 100644 --- a/examples/syntest.rs +++ b/examples/syntest.rs @@ -89,7 +89,7 @@ fn get_line_assertion_details<'a>(testtoken_start: &str, testtoken_end: Option<& fn process_assertions(assertion: &AssertionRange, test_against_line_scopes: &Vec) -> Vec { let selector = ScopeSelectors::from_str(assertion.scope_selector_text).unwrap(); // find the scope at the specified start column, and start matching the selector through the rest of the tokens on the line from there until the end column is reached - // TODO: don't ignore assertions after the newline + // TODO: don't ignore assertions after the newline, they should be treated as though they are asserting against the newline let mut results = Vec::new(); for scoped_text in test_against_line_scopes.iter().skip_while(|s|s.char_start + s.text_len <= assertion.begin_char).take_while(|s|s.char_start < assertion.end_char) { let match_value = selector.does_match(scoped_text.scope.as_slice()); @@ -183,6 +183,7 @@ fn test_file(ss: &SyntaxSet, path: &Path, parse_test_lines: bool) -> Result