[PATCH] Add .pd extension to c_exts.

Martin Liška mliska@suse.cz
Mon Sep 2 07:45:00 GMT 2019


On 8/30/19 2:54 PM, Richard Biener wrote:
> On Fri, Aug 30, 2019 at 2:31 PM Alexander Monakov <amonakov@ispras.ru> wrote:
>>
>>
>>
>> On Fri, 30 Aug 2019, Richard Biener wrote:
>>
>>> On Fri, Aug 30, 2019 at 12:58 PM Martin Liška <mliska@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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Set-tabstop-8-for-gcc-match-file-types.patch
Type: text/x-patch
Size: 814 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190902/9930c4d9/attachment.bin>


More information about the Gcc-patches mailing list