mirror of https://github.com/helix-editor/helix
Add JSX highlighting queries
parent
d0ff2ffd89
commit
a24fb17b2a
|
@ -270,7 +270,7 @@ file-types = ["js", "jsx", "mjs"]
|
||||||
shebangs = ["node"]
|
shebangs = ["node"]
|
||||||
roots = []
|
roots = []
|
||||||
comment-token = "//"
|
comment-token = "//"
|
||||||
# TODO: highlights-jsx, highlights-params
|
# TODO: highlights-params
|
||||||
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "javascript" }
|
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "javascript" }
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ injection-regex = "^(ts|typescript)$"
|
||||||
file-types = ["ts"]
|
file-types = ["ts"]
|
||||||
shebangs = []
|
shebangs = []
|
||||||
roots = []
|
roots = []
|
||||||
# TODO: highlights-jsx, highlights-params
|
# TODO: highlights-params
|
||||||
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "typescript"}
|
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "typescript"}
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ scope = "source.tsx"
|
||||||
injection-regex = "^(tsx)$" # |typescript
|
injection-regex = "^(tsx)$" # |typescript
|
||||||
file-types = ["tsx"]
|
file-types = ["tsx"]
|
||||||
roots = []
|
roots = []
|
||||||
# TODO: highlights-jsx, highlights-params
|
# TODO: highlights-params
|
||||||
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "typescriptreact" }
|
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "typescriptreact" }
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
(jsx_opening_element (identifier) @tag)
|
|
||||||
(jsx_closing_element (identifier) @tag)
|
|
||||||
(jsx_self_closing_element (identifier) @tag)
|
|
||||||
(jsx_attribute (property_identifier) @attribute)
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
; JSX
|
||||||
|
;----
|
||||||
|
|
||||||
|
(jsx_opening_element (identifier) @tag)
|
||||||
|
(jsx_closing_element (identifier) @tag)
|
||||||
|
(jsx_self_closing_element (identifier) @tag)
|
||||||
|
(jsx_attribute (property_identifier) @variable.other.member)
|
||||||
|
|
||||||
; Special identifiers
|
; Special identifiers
|
||||||
;--------------------
|
;--------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue