mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
chore: create ecma base for use in js and ts which fixes jsx issues
This commit is contained in:
parent
ec41db9511
commit
3b8c2ea492
15 changed files with 411 additions and 412 deletions
20
queries/ecma/injections.scm
Normal file
20
queries/ecma/injections.scm
Normal file
|
|
@ -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)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue