diff options
| author | kiyan <yazdani.kiyan@protonmail.com> | 2021-03-09 23:14:27 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-03-10 17:34:11 +0100 |
| commit | 3b8c2ea492917fcb3c0e88ad6682dbd355cc0644 (patch) | |
| tree | de412f14c476f809c6e60f06e57136384b99e616 /queries/ecma/injections.scm | |
| parent | ec41db9511309966f6ab816d0139fad30ef50be6 (diff) | |
chore: create ecma base for use in js and ts which fixes jsx issues
Diffstat (limited to 'queries/ecma/injections.scm')
| -rw-r--r-- | queries/ecma/injections.scm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/queries/ecma/injections.scm b/queries/ecma/injections.scm new file mode 100644 index 00000000..bec0f315 --- /dev/null +++ b/queries/ecma/injections.scm @@ -0,0 +1,20 @@ +((comment) @jsdoc) + +((regex_pattern) @regex) + +(call_expression + function: ((identifier) @language) + arguments: ((template_string) @content + (#offset! @content 0 1 0 -1))) + +(call_expression + function: ((identifier) @_name + (#eq? @_name "gql")) + arguments: ((template_string) @graphql + (#offset! @graphql 0 1 0 -1))) + +(call_expression + function: ((identifier) @_name + (#eq? @_name "hbs")) + arguments: ((template_string) @glimmer + (#offset! @glimmer 0 1 0 -1))) |
