4; Highlight component names differently
6(jsx_opening_element ((identifier) @constructor
7 (#match? @constructor "^[A-Z]")))
9; Handle the dot operator effectively - <My.Component>
10(jsx_opening_element ((nested_identifier (identifier) @tag (identifier) @constructor)))
12(jsx_closing_element ((identifier) @constructor
13 (#match? @constructor "^[A-Z]")))
15; Handle the dot operator effectively - </My.Component>
16(jsx_closing_element ((nested_identifier (identifier) @tag (identifier) @constructor)))
18(jsx_self_closing_element ((identifier) @constructor
19 (#match? @constructor "^[A-Z]")))
21; Handle the dot operator effectively - <My.Component />
22(jsx_self_closing_element ((nested_identifier (identifier) @tag (identifier) @constructor)))
24; TODO: also tag @punctuation.delimiter?
26(jsx_opening_element (identifier) @tag)
27(jsx_closing_element (identifier) @tag)
28(jsx_self_closing_element (identifier) @tag)
29(jsx_attribute (property_identifier) @variable.other.member)
36 (shorthand_property_identifier)
37 (shorthand_property_identifier_pattern)
39 (#match? @constant "^[A-Z_][A-Z\\d_]+$"))
42((identifier) @constructor
43 (#match? @constructor "^[A-Z]"))
45((identifier) @variable.builtin
46 (#match? @variable.builtin "^(arguments|module|console|window|document)$")
49((identifier) @function.builtin
50 (#eq? @function.builtin "require")
53; Function and method definitions
54;--------------------------------
57 name: (identifier) @function)
59 name: (identifier) @function)
61 name: (property_identifier) @function.method)
64 key: (property_identifier) @function.method
65 value: [(function) (arrow_function)])
68 left: (member_expression
69 property: (property_identifier) @function.method)
70 right: [(function) (arrow_function)])
73 name: (identifier) @function
74 value: [(function) (arrow_function)])
77 left: (identifier) @function
78 right: [(function) (arrow_function)])
80; Function and method calls
81;--------------------------
84 function: (identifier) @function)
87 function: (member_expression
88 property: (property_identifier) @function.method))
98(property_identifier) @variable.other.member
103(this) @variable.builtin
104(super) @variable.builtin
120(regex) @string.regexp
121(number) @constant.numeric.integer
126(template_substitution
127 "${" @punctuation.special
128 "}" @punctuation.special) @embedded
135] @punctuation.delimiter
191] @punctuation.bracket
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list