diff options
| author | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-09-19 12:32:28 +0200 |
|---|---|---|
| committer | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-09-20 01:11:55 +0200 |
| commit | b3a1ae32104c7b4296c677028bf2312865de8ce2 (patch) | |
| tree | 043eff5963e18e0cc1ba796f6033be06b34a8857 | |
| parent | 1340375c9059f91d9a2f63beb03cebcf6d4b1ff3 (diff) | |
also match variable names to be @type when uppercased
| -rw-r--r-- | queries/jsx/highlights.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/jsx/highlights.scm b/queries/jsx/highlights.scm index 0664993b..83d9e6de 100644 --- a/queries/jsx/highlights.scm +++ b/queries/jsx/highlights.scm @@ -23,4 +23,7 @@ (jsx_self_closing_element ((identifier) @type (#match? @type "^[A-Z]"))) +(variable_declarator ((identifier) @type + (#match? @type "^[A-Z]"))) + (jsx_text) @none |
