Skip to content

Commit

Permalink
add doc comment for get_syntax_test_assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-hall committed Oct 21, 2018
1 parent 1d754cf commit c75729c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/syntax_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ pub struct SyntaxTestAssertionRange {
scope_selector_text: String,
}

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

0 comments on commit c75729c

Please sign in to comment.