diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/treesit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/treesit.c b/src/treesit.c index 69272b8ad88..2b5b2cc044a 100644 --- a/src/treesit.c +++ b/src/treesit.c | |||
| @@ -2182,7 +2182,7 @@ treesit_predicates_for_pattern (TSQuery *query, uint32_t pattern_index) | |||
| 2182 | const char *str = ts_query_capture_name_for_id (query, | 2182 | const char *str = ts_query_capture_name_for_id (query, |
| 2183 | step.value_id, | 2183 | step.value_id, |
| 2184 | &str_len); | 2184 | &str_len); |
| 2185 | predicate = Fcons (intern_c_string_1 (str, str_len), | 2185 | predicate = Fcons (intern_c_string_1 (str, str_len, true), |
| 2186 | predicate); | 2186 | predicate); |
| 2187 | break; | 2187 | break; |
| 2188 | } | 2188 | } |
| @@ -2537,7 +2537,7 @@ the query. */) | |||
| 2537 | const char *capture_name | 2537 | const char *capture_name |
| 2538 | = ts_query_capture_name_for_id (treesit_query, capture.index, | 2538 | = ts_query_capture_name_for_id (treesit_query, capture.index, |
| 2539 | &capture_name_len); | 2539 | &capture_name_len); |
| 2540 | cap = Fcons (intern_c_string_1 (capture_name, capture_name_len), | 2540 | cap = Fcons (intern_c_string_1 (capture_name, capture_name_len, true), |
| 2541 | captured_node); | 2541 | captured_node); |
| 2542 | } | 2542 | } |
| 2543 | else | 2543 | else |