[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
- CC-mode highlight change between 24.5 and 25, Oleh Krehel, 2016/09/02
- Re: CC-mode highlight change between 24.5 and 25,
Oleh Krehel <=
- Re: CC-mode highlight change between 24.5 and 25, Alan Mackenzie, 2016/09/04
- Re: CC-mode highlight change between 24.5 and 25, Oleh Krehel, 2016/09/05
- Re: CC-mode highlight change between 24.5 and 25, Alan Mackenzie, 2016/09/05
- Re: CC-mode highlight change between 24.5 and 25, Oleh Krehel, 2016/09/06
- Re: CC-mode highlight change between 24.5 and 25, Alan Mackenzie, 2016/09/06
- Re: CC-mode highlight change between 24.5 and 25, Alan Mackenzie, 2016/09/07
- Re: CC-mode highlight change between 24.5 and 25, Oleh Krehel, 2016/09/09
- Re: CC-mode highlight change between 24.5 and 25, Alan Mackenzie, 2016/09/11