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/cpp/highlights.scm | |
| 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/cpp/highlights.scm')
| -rw-r--r-- | queries/cpp/highlights.scm | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index f2ba879fb..594e0dc24 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -8,9 +8,8 @@ ; function(Foo ...foo) (variadic_parameter_declaration - declarator: - (variadic_declarator - (_) @variable.parameter)) + declarator: (variadic_declarator + (_) @variable.parameter)) ; int foo = 0 (optional_parameter_declaration @@ -44,9 +43,8 @@ (#lua-match? @type "^[%u]")) (case_statement - value: - (qualified_identifier - (identifier) @constant)) + value: (qualified_identifier + (identifier) @constant)) (using_declaration . @@ -167,15 +165,13 @@ (#lua-match? @constructor "^%u")) ((call_expression - function: - (qualified_identifier - name: (identifier) @constructor)) + function: (qualified_identifier + name: (identifier) @constructor)) (#lua-match? @constructor "^%u")) ((call_expression - function: - (field_expression - field: (field_identifier) @constructor)) + function: (field_expression + field: (field_identifier) @constructor)) (#lua-match? @constructor "^%u")) ; constructing a type in an initializer list: Constructor (): **SuperType (1)** |
