"Return the indent rules for MODE and STYLE.
The returned value can be set to `treesit-simple-indent-rules'.
-MODE can be `c' or `c++'. STYLE can be `gnu', `k&r', `linux', `bsd'."
+MODE can be `c' or `cpp'. STYLE can be `gnu', `k&r', `linux', `bsd'."
(let ((rules
`((c-ts-mode--for-each-tail-body-matcher
prev-line c-ts-mode-indent-offset)
,@rules))))
(pcase mode
('c `((c . ,rules)))
- ('c++ `((cpp . ,rules))))))
+ ('cpp `((cpp . ,rules))))))
(defun c-ts-mode--parenthesized-expression-indent-rule (_node parent &rest _)
"Indent rule that indents aprenthesized expression.
;; Indent.
(setq-local treesit-simple-indent-rules
(c-ts-mode--simple-indent-rules
- 'c++ c-ts-mode-indent-style))
+ 'cpp c-ts-mode-indent-style))
;; Font-lock.
(setq-local treesit-font-lock-settings