mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -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
|
|
@ -1,20 +1 @@
|
|||
((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)))
|
||||
; inherits: ecma,jsx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue