mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
indents(c/cpp): let C++ use the C indents and add class_specifier
Fixes #1320
This commit is contained in:
parent
0efa1ec83a
commit
b57194325c
2 changed files with 7 additions and 15 deletions
|
|
@ -4,6 +4,9 @@
|
||||||
(preproc_arg)
|
(preproc_arg)
|
||||||
(field_declaration_list)
|
(field_declaration_list)
|
||||||
(case_statement)
|
(case_statement)
|
||||||
|
(conditional_expression)
|
||||||
|
(enumerator_list)
|
||||||
|
(struct_specifier)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,7 @@
|
||||||
|
; inherits: c
|
||||||
|
|
||||||
[
|
[
|
||||||
(enumerator_list)
|
(field_declaration_list)
|
||||||
(struct_specifier)
|
(class_specifier)
|
||||||
(compound_statement)
|
|
||||||
(case_statement)
|
|
||||||
(condition_clause)
|
(condition_clause)
|
||||||
(conditional_expression)
|
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
[
|
|
||||||
(statement_identifier)
|
|
||||||
"#ifdef"
|
|
||||||
"#endif"
|
|
||||||
"{"
|
|
||||||
"}"
|
|
||||||
] @branch
|
|
||||||
|
|
||||||
(comment) @ignore
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue