emacs-devel
[Top][All Lists]
Advanced

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

Re: CC-mode highlight change between 24.5 and 25


From: Oleh Krehel
Subject: Re: CC-mode highlight change between 24.5 and 25
Date: Fri, 02 Sep 2016 16:18:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Alan Mackenzie <address@hidden> writes:

> Can you help me out here, please - by what criterion is the C++ compiler
> deciding that `fout' is a variable initialised to `file_name' rather
> than a function declaration?  The only syntactic thing I can see for
> this is that `fout' is declared inside a function rather than at the top
> level (or directly inside a class, struct, or namespace).

I think it very uncommon to declare a function inside another function
in C++: it's done in top-level instead.

I would be happy enough with the heuristic of parsing all indented
(i.e. not top-level) declarations/definitions as (variable) definitions.

    Oleh



reply via email to

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