feat(lib)!: disallow whitespace in supertype syntax
This commit is contained in:
parent
341665824c
commit
00e394f0f1
2 changed files with 16 additions and 4 deletions
|
|
@ -2452,8 +2452,6 @@ static TSQueryError ts_query__parse_pattern(
|
|||
step->is_named = true;
|
||||
}
|
||||
|
||||
stream_skip_whitespace(stream);
|
||||
|
||||
// Parse a supertype symbol
|
||||
if (stream->next == '/') {
|
||||
if (!step->supertype_symbol) {
|
||||
|
|
@ -2516,10 +2514,10 @@ static TSQueryError ts_query__parse_pattern(
|
|||
return TSQueryErrorStructure;
|
||||
}
|
||||
}
|
||||
|
||||
stream_skip_whitespace(stream);
|
||||
}
|
||||
|
||||
stream_skip_whitespace(stream);
|
||||
|
||||
// Parse the child patterns
|
||||
bool child_is_immediate = false;
|
||||
uint16_t last_child_step_index = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue