1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/progmodes
Alan Mackenzie 4cb8696e47 Don't misfontify "foo ()" inside C++ initialization parentheses as a type
Also recognize and handle function names introduced by "extern" inside a
function.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Add a new element to
the result list which is t when our declaration is, or is to be treated as,
being at top level.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Detect being
inside a C++ uniform initialization and return (not-decl nil) for this case.
(c-font-lock-declarations): Use the new element 4 of the result of
c-forward-decl-or-cast-1.

* lisp/progmodes/cc-langs.el (c-make-top-level-kwds, c-make-top-level-key):
New lang consts/vars.
2017-12-13 20:55:03 +00:00
..
ada-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ada-prj.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ada-stmt.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ada-xref.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
antlr-mode.el ; Typo fixes, mostly repeated words 2017-10-09 22:55:06 -07:00
asm-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
autoconf.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
bat-mode.el Fix last change in bat-mode.el 2017-09-22 20:41:10 +03:00
bug-reference.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-align.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-awk.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-bytecomp.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-cmds.el Make c-defun-name analyze more thoroughly a function type which is a struct 2017-11-21 18:06:11 +00:00
cc-defs.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-engine.el Don't misfontify "foo ()" inside C++ initialization parentheses as a type 2017-12-13 20:55:03 +00:00
cc-fonts.el Don't misfontify "foo ()" inside C++ initialization parentheses as a type 2017-12-13 20:55:03 +00:00
cc-guess.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-langs.el Don't misfontify "foo ()" inside C++ initialization parentheses as a type 2017-12-13 20:55:03 +00:00
cc-menus.el maint: shorten https://lists.gnu.org/archive/html/... links 2017-11-25 22:48:12 -08:00
cc-mode.el Spelling fixes 2017-11-19 00:21:09 -08:00
cc-styles.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-vars.el Fixes for defcustoms, prompted by cus-test-opts 2017-12-13 15:29:24 -05:00
cfengine.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cmacexp.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
compile.el maint: shorten https://lists.gnu.org/archive/html/... links 2017-11-25 22:48:12 -08:00
cperl-mode.el Add a Flymake backend for Perl 2017-11-05 12:53:56 +00:00
cpp.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cwarn.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
dcl-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebnf-abn.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebnf-bnf.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebnf-dtd.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebnf-ebx.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebnf-iso.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebnf-otz.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebnf-yac.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebnf2ps.el ; Fix some tiny doc and comment typos 2017-11-28 08:50:05 -08:00
ebrowse.el Fix doc typos 2017-10-28 17:10:25 -07:00
elisp-mode.el Suppress warnings during elisp completion macroexpansion 2017-12-11 17:38:28 -05:00
etags.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
executable.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
f90.el In f90.el, set fill-paragraph-function to a useful value 2017-11-08 20:16:38 -05:00
flymake-proc.el ; Fix a typo 2017-11-22 01:51:48 +02:00
flymake.el Add missing :version tags revealed by cusver-check 2017-12-12 23:21:24 -08:00
fortran.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
gdb-mi.el Make gdb-non-stop-setting default to nil on MS-Windows 2017-11-04 13:56:39 +02:00
glasses.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
grep.el Add missing :version tags revealed by cusver-check 2017-12-12 23:21:24 -08:00
gud.el Fix doc typos 2017-10-28 17:10:25 -07:00
hideif.el Fix some duplicate words typos 2017-10-27 20:45:23 -04:00
hideshow.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
icon.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
idlw-complete-structtag.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
idlw-help.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
idlw-shell.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
idlw-toolbar.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
idlwave.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
inf-lisp.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
js.el Add missing :version tags revealed by cusver-check 2017-12-12 23:21:24 -08:00
ld-script.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
m4-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
make-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
mantemp.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
meta-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
mixal-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
modula2.el
octave.el maint: shorten https://lists.gnu.org/archive/html/... links 2017-11-25 22:48:12 -08:00
opascal.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
pascal.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
perl-mode.el Add missing :version tags revealed by cusver-check 2017-12-12 23:21:24 -08:00
prog-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
project.el Document how to enter whitespace when using grep-read-files 2017-11-17 15:39:02 +02:00
prolog.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ps-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
python.el Add missing :version tags revealed by cusver-check 2017-12-12 23:21:24 -08:00
ruby-mode.el Add missing :version tags revealed by cusver-check 2017-12-12 23:21:24 -08:00
scheme.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
sh-script.el ; Spelling fixes 2017-09-29 16:41:50 -07:00
simula.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
sql.el Prefer HTTPS to HTTP for gnu.org 2017-10-01 19:59:01 -07:00
subword.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
tcl.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
vera-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
verilog-mode.el Fixes for defcustoms, prompted by cus-test-opts 2017-12-13 15:29:24 -05:00
vhdl-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
which-func.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
xref.el New xref-quit-and-goto-xref command bound to TAB (bug#28814) 2017-11-03 16:13:39 +00:00
xscheme.el Fix doc typos 2017-10-28 17:10:25 -07:00