bug-make
[Top][All Lists]
Advanced

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

Re: [bug #39943] Add an alternative parsing mode that regards space and


From: Tim Murphy
Subject: Re: [bug #39943] Add an alternative parsing mode that regards space and tab as identical tokens
Date: Thu, 5 Sep 2013 11:43:39 +0100

The detection also appears to only work if the statement has a syntax
error in it.

e.g.
fred:
        X=25;echo$$X


With 8 spaces the above is not warned about even though to the human
eye when you use vim's search function to highlight spaces it becomes
visually highly suspicious.

1) it's immediately after a target or
2) immediately after a recipe
3) it's indented which is an odd thing to do outside of any context such as ifeq

I'm not suggesting that there's any truly satisfactory way to be sure
of this but even if an "info" message appeared or an "NB" or if one
had to switch on some special warning mode that was extra picky -
whatever it was would be handy and perhaps discourage people from
using styles that could end up in confusion.  50 years down the line
for gmake 5 our children might then switch from notification to
warning and finally enforcement of something.


Regards,

Tim

On 5 September 2013 11:18, Tim Murphy <address@hidden> wrote:
> ah, interesting  - good point. My standard (at least the enforced
> standard where I work) is 4-spaces and it doesn't catch that.
>
> On 5 September 2013 10:44, Eli Zaretskii <address@hidden> wrote:
>>> Date: Thu, 5 Sep 2013 10:38:16 +0100
>>> From: Tim Murphy <address@hidden>
>>> Cc: Byron Hawkins <address@hidden>,
>>>       Boris Kolpackov <address@hidden>, bug-make <address@hidden>
>>>
>>> It would be nice even if make was able to guess what might be
>>> happening and issue a warning
>>
>> It already does:
>>
>>   /usr/tmp/Gma07464:2: *** missing separator (did you mean TAB instead of 8 
>> spaces?).  Stop.
>
>
>
> --
> You could help some brave and decent people to have access to
> uncensored news by making a donation at:
>
> http://www.thezimbabwean.co.uk/friends/



-- 
You could help some brave and decent people to have access to
uncensored news by making a donation at:

http://www.thezimbabwean.co.uk/friends/



reply via email to

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