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 /scripts/format-queries.lua | |
| 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 'scripts/format-queries.lua')
| -rwxr-xr-x | scripts/format-queries.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/format-queries.lua b/scripts/format-queries.lua index 1bc7532b8..f5b129cde 100755 --- a/scripts/format-queries.lua +++ b/scripts/format-queries.lua @@ -201,16 +201,6 @@ local format_queries = [[ ;; Workaround to just use the string's content (anonymous_node (identifier) @format.keep) -(field_definition - name: (_) - ":" @format.indent.begin @format.append-newline ; suppress trailing whitespaces with forced newlines - [ - (named_node [ (named_node) (list) (grouping) (anonymous_node) (field_definition) ]) - (list "[" . (_) . (_) "]") - (grouping "(" . (_) . (_) ")") - (grouping - quantifier: (quantifier)) - ]) ; ( (_) ) handler (grouping |
