Skip to content

Commit c75729c

Browse files
committed
add doc comment for get_syntax_test_assertions
1 parent 1d754cf commit c75729c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/syntax_tests.rs

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ pub struct SyntaxTestAssertionRange {
3333
scope_selector_text: String,
3434
}
3535

36+
/// Given a start token, option end token and text, parse the syntax tests in the text
37+
/// that follow the format described at http://www.sublimetext.com/docs/3/syntax.html#testing
38+
/// and return the scope selector assertions found, so that when the text is parsed,
39+
/// the assertions can be checked
3640
pub fn get_syntax_test_assertions(token_start: &str, token_end: Option<&str>, text: &str) -> Vec<SyntaxTestAssertionRange> {
3741
let mut assertions = Vec::new();
3842
let mut test_line_offset = 0;

0 commit comments

Comments
 (0)