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/ocaml | |
| 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/ocaml')
| -rw-r--r-- | queries/ocaml/highlights.scm | 24 | ||||
| -rw-r--r-- | queries/ocaml/locals.scm | 12 |
2 files changed, 15 insertions, 21 deletions
diff --git a/queries/ocaml/highlights.scm b/queries/ocaml/highlights.scm index 3863d405e..abd0f6bd4 100644 --- a/queries/ocaml/highlights.scm +++ b/queries/ocaml/highlights.scm @@ -40,11 +40,10 @@ (let_binding pattern: (value_name) @function - body: - [ - (fun_expression) - (function_expression) - ]) + body: [ + (fun_expression) + (function_expression) + ]) (value_specification (value_name) @function) @@ -57,23 +56,20 @@ ; Application ;------------ (infix_expression - left: - (value_path - (value_name) @function.call) + left: (value_path + (value_name) @function.call) operator: (concat_operator) @_operator (#eq? @_operator "@@")) (infix_expression operator: (rel_operator) @_operator - right: - (value_path - (value_name) @function.call) + right: (value_path + (value_name) @function.call) (#eq? @_operator "|>")) (application_expression - function: - (value_path - (value_name) @function.call)) + function: (value_path + (value_name) @function.call)) ((value_name) @function.builtin (#any-of? @function.builtin "raise" "raise_notrace" "failwith" "invalid_arg")) diff --git a/queries/ocaml/locals.scm b/queries/ocaml/locals.scm index 38f1f15f2..38d392609 100644 --- a/queries/ocaml/locals.scm +++ b/queries/ocaml/locals.scm @@ -28,16 +28,14 @@ (#set! definition.var.scope "parent")) (let_binding - pattern: - (tuple_pattern - (value_name) @local.definition.var) + pattern: (tuple_pattern + (value_name) @local.definition.var) (#set! definition.var.scope "parent")) (let_binding - pattern: - (record_pattern - (field_pattern - (value_name) @local.definition.var)) + pattern: (record_pattern + (field_pattern + (value_name) @local.definition.var)) (#set! definition.var.scope "parent")) (external |
