mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
injections(jsx): highlight <style jsx>
as css
This commit is contained in:
parent
388e36cd28
commit
69a55e86ce
2 changed files with 9 additions and 1 deletions
8
queries/jsx/injections.scm
Normal file
8
queries/jsx/injections.scm
Normal file
|
@ -0,0 +1,8 @@
|
|||
; Styled Jsx <style jsx>
|
||||
(jsx_element
|
||||
(jsx_opening_element
|
||||
(identifier) @_name (#eq? @_name "style")
|
||||
(jsx_attribute) @_attr (#eq? @_attr "jsx"))
|
||||
(jsx_expression (template_string) @css
|
||||
(#offset! @css 0 1 0 -1))
|
||||
)
|
|
@ -1 +1 @@
|
|||
; inherits: ecma
|
||||
; inherits: ecma,jsx
|
||||
|
|
Loading…
Reference in a new issue