emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c-ts-mode


From: Ergus
Subject: c-ts-mode
Date: Thu, 31 Aug 2023 01:52:24 +0200

Hi all:

I have been trying to use c++-ts-mode and I found this apparently wrong
indentation:

int a(in x
      )

The ) is placed differently compared with the previous c++-mode and
inconsistent with the current linux coding standard.

The treesit-check-indent shows actually a diff there (same with for
loops)

I see this entry `((node-is ")") parent 1)` in c-ts-mode--indent-styles
so there must e a reason I am not aware of... however:

Is it possible to specify small differences in the existent styles like
we used to do with c-set-offset? either in the init file or the
.dir-locals.el?

a way to put something like: `((node-is ")") parent 0`??

If I need to define some completely different indentation style (google
for example) whats the intended method to do it without reinventing the
wheel?

Thanks in advance,
Ergus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]