We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d754cf commit c75729cCopy full SHA for c75729c
src/syntax_tests.rs
@@ -33,6 +33,10 @@ pub struct SyntaxTestAssertionRange {
33
scope_selector_text: String,
34
}
35
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
40
pub fn get_syntax_test_assertions(token_start: &str, token_end: Option<&str>, text: &str) -> Vec<SyntaxTestAssertionRange> {
41
let mut assertions = Vec::new();
42
let mut test_line_offset = 0;
0 commit comments