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 0e09d00f29 Fontify C++ for loop variable as variable, even when followed by parentheses
In the following: "for (auto *Friend : Class->friends()) {", "Friend" was
getting fontified as a function, due to insufficient checking of the tokens
between it and "()".

* lisp/progmodes/cc-langs.el (c-:-op-cont-tokens, c-:-op-cont-regexp): New
lang-consts/vars.

* lisp/progmodes/cc-engine.el (c-forward-declarator): After finding a putative
declarator's identifier, check for a ":" token inside a for's parentheses, and
abort the search for "(" if this is found.
2017-05-12 21:11:49 +00:00
..
ada-mode.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
ada-prj.el Avoid add-to-list on local variables 2017-01-04 00:40:45 -05:00
ada-stmt.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ada-xref.el Avoid add-to-list on local variables 2017-01-04 00:40:45 -05:00
antlr-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
asm-mode.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
autoconf.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
bat-mode.el Improve fontification in bat-mode 2017-02-10 11:23:24 +02:00
bug-reference.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-align.el Allow C++ nested brace-list-entries to be better indented. 2017-02-01 20:20:09 +00:00
cc-awk.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-bytecomp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-cmds.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
cc-defs.el CC Mode internal cache: Handle a cache pos being inside a two-char construct. 2017-05-07 09:27:00 +00:00
cc-engine.el Fontify C++ for loop variable as variable, even when followed by parentheses 2017-05-12 21:11:49 +00:00
cc-fonts.el Fix fontification of C++ declaration with type FOO::FOO. 2017-04-22 14:45:24 +00:00
cc-guess.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-langs.el Fontify C++ for loop variable as variable, even when followed by parentheses 2017-05-12 21:11:49 +00:00
cc-menus.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-mode.el Fix C++ fontification problems 500 bytes after typing a space, and other bugs 2017-03-30 20:24:39 +00:00
cc-styles.el Allow C++ nested brace-list-entries to be better indented. 2017-02-01 20:20:09 +00:00
cc-vars.el Fix C++ fontification problems 500 bytes after typing a space, and other bugs 2017-03-30 20:24:39 +00:00
cfengine.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cmacexp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
compile.el Merge from origin/emacs-25 2017-03-19 12:24:51 -07:00
cperl-mode.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
cpp.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
cwarn.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
dcl-mode.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-abn.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-bnf.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-dtd.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-ebx.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-iso.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-otz.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-yac.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf2ps.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ebrowse.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
elisp-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
etags.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
executable.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
f90.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
flymake.el Merge from origin/emacs-25 2017-03-19 12:29:06 -07:00
fortran.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
gdb-mi.el Don't call 'kill-this-buffer' outside of menus 2017-04-12 23:14:20 +03:00
glasses.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
grep.el Extract grep-find-ignored-directories processing from rgrep-default-command 2017-02-10 14:53:02 -05:00
gud.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
hideif.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
hideshow.el lisp/*.el: Fix some warnings 2017-01-29 19:34:35 +01:00
icon.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
idlw-complete-structtag.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
idlw-help.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
idlw-shell.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
idlw-toolbar.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
idlwave.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
inf-lisp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
js.el Handle indentation of nested ternary operators in JS 2017-04-13 03:50:41 +03:00
ld-script.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
m4-mode.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
make-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
mantemp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
meta-mode.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
mixal-mode.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
modula2.el
octave.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
opascal.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
pascal.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
perl-mode.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
prog-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
project.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
prolog.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ps-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
python.el Protect against an infloop in python-mode 2017-03-23 23:05:19 +01:00
ruby-mode.el Turn on lexical-binding in ruby-mode 2017-02-17 19:01:11 -05:00
scheme.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
sh-script.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
simula.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
sql.el Merge from origin/emacs-25 2017-03-19 12:27:55 -07:00
subword.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
tcl.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
vera-mode.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
verilog-mode.el Fix various verilog-mode.el issues. 2017-05-08 13:44:47 -04:00
vhdl-mode.el Doc fix for vhdl-mode re mail-host-address 2017-02-12 17:36:33 -08:00
which-func.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
xref.el ; xref-collect-matches: Add a TODO 2017-05-04 18:27:15 +03:00
xscheme.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00