1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00
emacs/lisp/progmodes
Alan Mackenzie 4ea37c2b8b Cope better with C++ and Objective-C protection keywords in class declarations
This fix fixes the fontification of a method inside a class at the time it is
typed, when there is a protection keyword clause preceding it.

* lisp/progmodes/cc-engine.el (c-forward-keyword-clause): Handle protection
keywords.
(c-looking-at-decl-block): Avoid scanning forward over protection keyword
clauses too eagerly.

* lisp/progmodes/cc-langs.el (c-protection-key c-post-protection-token): New
lang defconsts and defvars.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): When we encounter a protection
keyword following a semicolon or brace, move forward over it before attempting
to parse a type.
2017-09-16 11:31:38 +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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-defs.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-engine.el Cope better with C++ and Objective-C protection keywords in class declarations 2017-09-16 11:31:38 +00:00
cc-fonts.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-guess.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-langs.el Cope better with C++ and Objective-C protection keywords in class declarations 2017-09-16 11:31:38 +00:00
cc-menus.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-mode.el Cope better with C++ and Objective-C protection keywords in class declarations 2017-09-16 11:31:38 +00:00
cc-styles.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cc-vars.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cperl-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ebrowse.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
elisp-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
flymake-proc.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
flymake-ui.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
flymake.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
fortran.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
gdb-mi.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
glasses.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
grep.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
gud.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
hideif.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
prog-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
project.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ruby-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
scheme.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
sh-script.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -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 FTP and HTTP in documentation 2017-09-13 15:54:37 -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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07: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 Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
xscheme.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00