aboutsummaryrefslogtreecommitdiffstats
path: root/queries/apex
diff options
context:
space:
mode:
authorPhạm Huy Hoàng <hoangtun0810@gmail.com>2024-03-21 20:44:35 +0900
committerChristian Clason <c.clason@uni-graz.at>2024-03-21 15:51:26 +0100
commit722617e6726c1508adadf83d531f54987c703be0 (patch)
tree951cdcf1cd2571647a3e5afdc11d6fae5e88b630 /queries/apex
parentfeat(rust): improve indents (diff)
downloadnvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.gz
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.bz2
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.lz
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.xz
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.zst
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.zip
refactor(format): drop extra indentation for field
Diffstat (limited to 'queries/apex')
-rw-r--r--queries/apex/highlights.scm59
-rw-r--r--queries/apex/locals.scm10
2 files changed, 32 insertions, 37 deletions
diff --git a/queries/apex/highlights.scm b/queries/apex/highlights.scm
index 55acadd62..50812f214 100644
--- a/queries/apex/highlights.scm
+++ b/queries/apex/highlights.scm
@@ -106,36 +106,34 @@
] @operator
(binary_expression
- operator:
- [
- ">"
- "<"
- "=="
- "==="
- "!=="
- "&&"
- "||"
- "+"
- "-"
- "*"
- "/"
- "&"
- "|"
- "^"
- "%"
- "<<"
- ">>"
- ">>>"
- ] @operator)
+ operator: [
+ ">"
+ "<"
+ "=="
+ "==="
+ "!=="
+ "&&"
+ "||"
+ "+"
+ "-"
+ "*"
+ "/"
+ "&"
+ "|"
+ "^"
+ "%"
+ "<<"
+ ">>"
+ ">>>"
+ ] @operator)
(unary_expression
- operator:
- [
- "+"
- "-"
- "!"
- "~"
- ]) @operator
+ operator: [
+ "+"
+ "-"
+ "!"
+ "~"
+ ]) @operator
(map_initializer
"=>" @operator)
@@ -147,9 +145,8 @@
; Fields
(field_declaration
- declarator:
- (variable_declarator
- name: (identifier) @variable.member))
+ declarator: (variable_declarator
+ name: (identifier) @variable.member))
(field_access
field: (identifier) @variable.member)
diff --git a/queries/apex/locals.scm b/queries/apex/locals.scm
index d3cbfa73b..2457752fa 100644
--- a/queries/apex/locals.scm
+++ b/queries/apex/locals.scm
@@ -48,9 +48,8 @@
name: (identifier) @local.definition.method)
(local_variable_declaration
- declarator:
- (variable_declarator
- name: (identifier) @local.definition.var))
+ declarator: (variable_declarator
+ name: (identifier) @local.definition.var))
(enhanced_for_statement
name: (identifier) @local.definition.var)
@@ -62,9 +61,8 @@
name: (identifier) @local.definition.parameter)
(field_declaration
- declarator:
- (variable_declarator
- name: (identifier) @local.definition.field))
+ declarator: (variable_declarator
+ name: (identifier) @local.definition.field))
; REFERENCES
(identifier) @local.reference