diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/treesit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/treesit.c b/src/treesit.c index 0d878a580eb..5de75219907 100644 --- a/src/treesit.c +++ b/src/treesit.c | |||
| @@ -3081,6 +3081,9 @@ You can use `treesit-query-validate' to validate and debug a query. */) | |||
| 3081 | wrong_type_argument (Qtreesit_query_p, query); | 3081 | wrong_type_argument (Qtreesit_query_p, query); |
| 3082 | CHECK_SYMBOL (language); | 3082 | CHECK_SYMBOL (language); |
| 3083 | 3083 | ||
| 3084 | Lisp_Object remapped_lang = resolve_language_symbol (language); | ||
| 3085 | CHECK_SYMBOL (remapped_lang); | ||
| 3086 | |||
| 3084 | treesit_initialize (); | 3087 | treesit_initialize (); |
| 3085 | 3088 | ||
| 3086 | if (TS_COMPILED_QUERY_P (query)) | 3089 | if (TS_COMPILED_QUERY_P (query)) |
| @@ -3091,7 +3094,7 @@ You can use `treesit-query-validate' to validate and debug a query. */) | |||
| 3091 | return query; | 3094 | return query; |
| 3092 | } | 3095 | } |
| 3093 | 3096 | ||
| 3094 | Lisp_Object lisp_query = make_treesit_query (query, language); | 3097 | Lisp_Object lisp_query = make_treesit_query (query, remapped_lang); |
| 3095 | 3098 | ||
| 3096 | /* Maybe actually compile. */ | 3099 | /* Maybe actually compile. */ |
| 3097 | if (NILP (eager)) | 3100 | if (NILP (eager)) |