On 8/30/19 2:54 PM, Richard Biener wrote: > On Fri, Aug 30, 2019 at 2:31 PM Alexander Monakov <amona...@ispras.ru> wrote: >> >> >> >> On Fri, 30 Aug 2019, Richard Biener wrote: >> >>> On Fri, Aug 30, 2019 at 12:58 PM Martin Liška <mli...@suse.cz> wrote: >>>> >>>> Hi. >>>> >>>> I would like to add .pd to c_exts so that one >>>> can have correctly set tab width, etc. >>> >>> But then it will auto-indent with too much spaces, no? >> >> I think it's fine, the script does >> >> setlocal cindent >> setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,f0,h2,p4,t0,+2,(0,u0,w1,m0 >> >> so it's a bit smarter than indenting everything by 2 spaces :) >> >> So +1 from me for the patch, but note that now we have a contrib/vim-gcc-dev >> "plugin" directory, it might be more natural to add gcc-match indent rules >> there. > > Yeah, that would be better than claiming .pd is C ... > > Richard. > >> >> Alexander
Yep, I'm going to apply following patch that does it properly for the gcc-match file type. Martin
>From c72341c6a23ecc519ca2ecf104970b28c301b968 Mon Sep 17 00:00:00 2001 From: Martin Liska <mli...@suse.cz> Date: Mon, 2 Sep 2019 09:44:18 +0200 Subject: [PATCH] Set tabstop=8 for gcc-match file types. contrib/ChangeLog: 2019-09-02 Martin Liska <mli...@suse.cz> * vim-gcc-dev/syntax/gcc-match.vim: Set tabstop=8. --- contrib/vim-gcc-dev/syntax/gcc-match.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/vim-gcc-dev/syntax/gcc-match.vim b/contrib/vim-gcc-dev/syntax/gcc-match.vim index 356b07a15b2..e46140da044 100644 --- a/contrib/vim-gcc-dev/syntax/gcc-match.vim +++ b/contrib/vim-gcc-dev/syntax/gcc-match.vim @@ -68,4 +68,6 @@ hi def link pdComment Comment hi def link pdTodo Todo hi def link pdPreProc PreProc +setlocal tabstop=8 + let b:current_syntax = "gcc-match" -- 2.23.0