injections(jsx): highlight <style jsx> as css

This commit is contained in:
numToStr 2022-08-26 12:26:24 +00:00 committed by Stephan Seitz
parent 388e36cd28
commit 69a55e86ce
2 changed files with 9 additions and 1 deletions

View 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))
)

View file

@ -1 +1 @@
; inherits: ecma
; inherits: ecma,jsx