emacs-devel
[Top][All Lists]
Advanced

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

Re: CC Mode and electric-pair "problem".


From: João Távora
Subject: Re: CC Mode and electric-pair "problem".
Date: Mon, 18 Jun 2018 23:52:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin)

Yuri Khan <address@hidden> writes:

> On Tue, Jun 19, 2018 at 12:25 AM João Távora <address@hidden> wrote:
>> Alan Mackenzie <address@hidden> writes:
>> > Why?  They are now C statements, and would be handled by the compiler as
>> > such.
>>
>> Clarify "would". Because this doesn't compile.  My compiler doesn't even
>> seem to look at anything after the unterminated string:
>>
>>    int main () {
>>       printf("foo
>>              );
>>       printf("bar");
>>       return 0;
>>      }
>
> Mine does. After finding a syntax error, a typical C compiler
> continues scanning the source, attempting to diagnose more errors.

You're right.  That example I fed this particular compiler (clang)
didn't have anything for it to complain.

João





reply via email to

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