diff options
| author | Gerd Möllmann | 2022-11-28 09:29:43 +0100 |
|---|---|---|
| committer | Gerd Möllmann | 2022-11-28 09:29:43 +0100 |
| commit | 7ac023aa1f23598edf5025d121516f4e1a34700b (patch) | |
| tree | 90babd739235202d0c549243ba81a18cfdb8cb56 | |
| parent | 2848b97d0ea51e39c5fc3b7083f6d0e6f0756e67 (diff) | |
| download | emacs-feature/pkg.tar.gz emacs-feature/pkg.zip | |
Fix calls to intern_c_string_1feature/pkg
* src/treesit.c (treesit_predicates_for_pattern):
(Ftreesit_query_capture): Call intern_c_string_1 with additionla arg.
| -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 |