mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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)
|
||||
(field_declaration_list)
|
||||
(case_statement)
|
||||
(conditional_expression)
|
||||
(enumerator_list)
|
||||
(struct_specifier)
|
||||
] @indent
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,7 @@
|
|||
; inherits: c
|
||||
|
||||
[
|
||||
(enumerator_list)
|
||||
(struct_specifier)
|
||||
(compound_statement)
|
||||
(case_statement)
|
||||
(field_declaration_list)
|
||||
(class_specifier)
|
||||
(condition_clause)
|
||||
(conditional_expression)
|
||||
] @indent
|
||||
|
||||
[
|
||||
(statement_identifier)
|
||||
"#ifdef"
|
||||
"#endif"
|
||||
"{"
|
||||
"}"
|
||||
] @branch
|
||||
|
||||
(comment) @ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue