emacs-devel
[Top][All Lists]
Advanced

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

Nostalgia in CC Mode.


From: Alan Mackenzie
Subject: Nostalgia in CC Mode.
Date: Thu, 5 Oct 2017 17:35:56 +0000
User-agent: Mutt/1.7.2 (2016-11-26)

Hello, Emacs.

I've recently fixed a few long standing bugs in CC Mode such that
typeless function declarations in C Mode now get properly fontified.
These are those implicit integer typed constructs, which look rather
like function calls.

So, in your 30 year old code, you will get "main" and "pain" properly
fontified in the following:

    main (int argc, _char *argv[]);
    pain (int argc, _char *argv[])
    {}

.  This also works with K&R function declarations:

    main (argc, argv)
        int argc;
        char *argv;
    {}

.  At the moment, this is in the emacs-26 branch.  It will presumably
find its way to the master branch when Somebody (tm) does the routine
copying of such bugfixes between branches.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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