Implement include-children directive in injection queries
This commit is contained in:
parent
b3809274f0
commit
060e00463d
6 changed files with 86 additions and 43 deletions
|
|
@ -16,7 +16,13 @@ fn test_query_errors_on_invalid_syntax() {
|
|||
// Mismatched parens
|
||||
assert_eq!(
|
||||
Query::new(language, "(if_statement"),
|
||||
Err(QueryError::Syntax("Unexpected EOF".to_string()))
|
||||
Err(QueryError::Syntax(
|
||||
[
|
||||
"(if_statement", //
|
||||
" ^",
|
||||
]
|
||||
.join("\n")
|
||||
))
|
||||
);
|
||||
assert_eq!(
|
||||
Query::new(language, "; comment 1\n; comment 2\n (if_statement))"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue