Add missing language return in ts_query_new
Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Joseph <joseph@zed.dev>
This commit is contained in:
parent
31c4044974
commit
3c66dd2d6c
2 changed files with 23 additions and 3 deletions
|
|
@ -2698,7 +2698,7 @@ TSQuery *ts_query_new(
|
|||
.negated_fields = array_new(),
|
||||
.repeat_symbols_with_rootless_patterns = array_new(),
|
||||
.wildcard_root_pattern_count = 0,
|
||||
.language = language,
|
||||
.language = ts_language_copy(language),
|
||||
};
|
||||
|
||||
array_push(&self->negated_fields, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue