diff options
| author | Phạm Huy Hoàng <hoangtun0810@gmail.com> | 2024-03-21 20:44:35 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-21 15:51:26 +0100 |
| commit | 722617e6726c1508adadf83d531f54987c703be0 (patch) | |
| tree | 951cdcf1cd2571647a3e5afdc11d6fae5e88b630 /queries/ruby | |
| parent | feat(rust): improve indents (diff) | |
| download | nvim-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/ruby')
| -rw-r--r-- | queries/ruby/highlights.scm | 27 | ||||
| -rw-r--r-- | queries/ruby/locals.scm | 18 |
2 files changed, 20 insertions, 25 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm index c0e71e1dc..15f709128 100644 --- a/queries/ruby/highlights.scm +++ b/queries/ruby/highlights.scm @@ -78,11 +78,10 @@ (call receiver: (constant)? @type - method: - [ - (identifier) - (constant) - ] @function.call) + method: [ + (identifier) + (constant) + ] @function.call) (program (call @@ -97,18 +96,16 @@ (identifier) @function) (method - name: - [ - (identifier) @function - (constant) @type - ]) + name: [ + (identifier) @function + (constant) @type + ]) (singleton_method - name: - [ - (identifier) @function - (constant) @type - ]) + name: [ + (identifier) @function + (constant) @type + ]) (class name: (constant) @type) diff --git a/queries/ruby/locals.scm b/queries/ruby/locals.scm index 2a27c93a2..29a67e2ba 100644 --- a/queries/ruby/locals.scm +++ b/queries/ruby/locals.scm @@ -42,18 +42,16 @@ name: (constant) @local.definition.type) (method - name: - [ - (identifier) - (constant) - ] @local.definition.function) + name: [ + (identifier) + (constant) + ] @local.definition.function) (singleton_method - name: - [ - (identifier) - (constant) - ] @local.definition.function) + name: [ + (identifier) + (constant) + ] @local.definition.function) (method_parameters (identifier) @local.definition.var) |
