Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
; Opening elements
; ----------------

(jsx_opening_element ((identifier) @constructor
 (#match? @constructor "^[A-Z]")))

(jsx_opening_element (identifier) @tag)

; Closing elements
; ----------------

(jsx_closing_element ((identifier) @constructor
 (#match? @constructor "^[A-Z]")))

(jsx_closing_element (identifier) @tag)

; Self-closing elements
; ---------------------

(jsx_self_closing_element ((identifier) @constructor
 (#match? @constructor "^[A-Z]")))

(jsx_self_closing_element (identifier) @tag)

; Attributes
; ----------

(jsx_attribute (property_identifier) @variable.other.member)

; Punctuation
; -----------

; Handle attribute delimiter (<Component color="red"/>)
(jsx_attribute "=" @punctuation.delimiter)

; <Component>
(jsx_opening_element ["<" ">"] @punctuation.bracket)

; </Component>
(jsx_closing_element ["</" ">"] @punctuation.bracket)

; <Component />
(jsx_self_closing_element ["<" "/>"] @punctuation.bracket)
= "black", bg = "green" } "ui.statusline.select" = { fg = "black", bg = "magenta" } "ui.help" = { fg = "light-gray" } "ui.cursor" = { modifiers = ["reversed"] } "ui.cursor.match" = { fg = "light-yellow", underline = { color = "light-yellow", style = "line" } } "ui.cursor.primary" = { modifiers = ["reversed", "slow_blink"] } "ui.cursor.secondary" = { modifiers = ["reversed"] } "ui.virtual.ruler" = { bg = "gray" } "ui.virtual.whitespace" = "gray" "ui.virtual.indent-guide" = "gray" "ui.virtual.inlay-hint" = { fg = "white", bg = "gray" } "ui.virtual.inlay-hint.parameter" = { fg = "white", bg = "gray"} "ui.virtual.inlay-hint.type" = { fg = "white", bg = "gray"} "ui.virtual.wrap" = "gray" "ui.virtual.jump-label" = { fg = "blue", modifiers = ["bold", "underlined"] } "variable" = "light-red" "constant.numeric" = "yellow" "constant" = "yellow" "attribute" = "yellow" "type" = "light-yellow" "string" = "light-green" "variable.other.member" = "green" "constant.character.escape" = "light-cyan" "function" = "light-blue" "constructor" = "light-blue" "special" = "light-blue" "keyword" = "light-magenta" "label" = "light-magenta" "namespace" = "light-magenta" "markup.heading" = "light-blue" "markup.list" = "light-red" "markup.bold" = { fg = "light-yellow", modifiers = ["bold"] } "markup.italic" = { fg = "light-magenta", modifiers = ["italic"] } "markup.strikethrough" = { modifiers = ["crossed_out"] } "markup.link.url" = { fg = "yellow", underline = { color = "yellow", style = "line"} } "markup.link.text" = "light-red" "markup.quote" = "light-cyan" "markup.raw" = "green" "markup.normal" = { fg = "blue" } "markup.insert" = { fg = "green" } "markup.select" = { fg = "magenta" } "diff.plus" = "light-green" "diff.delta" = "light-blue" "diff.delta.moved" = "blue" "diff.minus" = "light-red" "ui.gutter" = "gray" "info" = "light-blue" "hint" = "light-gray" "debug" = "light-gray" "warning" = "light-yellow" "error" = "light-red" "diagnostic.info" = { underline = { color = "light-blue", style = "dotted" } } "diagnostic.hint" = { underline = { color = "light-gray", style = "double_line" } } "diagnostic.debug" = { underline ={ color ="light-gray", style = "dashed" } } "diagnostic.warning" = { underline = { color = "light-yellow", style = "curl" } } "diagnostic.error" = { underline = { color ="light-red", style = "curl" } }