Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/rescript/injections.scm')
| -rw-r--r-- | runtime/queries/rescript/injections.scm | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/runtime/queries/rescript/injections.scm b/runtime/queries/rescript/injections.scm index 67f530d3..03e29b00 100644 --- a/runtime/queries/rescript/injections.scm +++ b/runtime/queries/rescript/injections.scm @@ -1,29 +1,8 @@ -((comment) @injection.content (#set! injection.language "comment")) +((comment) @injection.content + (#set! injection.language "comment")) -; %re -(extension_expression - (extension_identifier) @_name - (#eq? @_name "re") - (expression_statement (_) @injection.content (#set! injection.language "regex"))) - -; %raw -(extension_expression - (extension_identifier) @_name - (#eq? @_name "raw") - (expression_statement - (_ (_) @injection.content (#set! injection.language "javascript")))) - -; %graphql -(extension_expression - (extension_identifier) @_name - (#eq? @_name "graphql") - (expression_statement - (_ (_) @injection.content (#set! injection.language "graphql")))) - -; %relay -(extension_expression - (extension_identifier) @_name - (#eq? @_name "relay") - (expression_statement - (_ (_) @injection.content (#set! injection.language "graphql") ))) +((raw_js) @injection.content + (#set! injection.language "javascript")) +((raw_gql) @injection.content + (#set! injection.language "graphql"))
\ No newline at end of file |