summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-fonts.el
Commit message (Collapse)AuthorAgeFilesLines
* Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
| * Reverse 2009-12-03T16:02:10Z!acm@muc.de "Enhance `c-parse-state' to run ↵Alan Mackenzie2010-04-121-2/+1
| | | | | | | | | | | | efficiently in \"brace desserts\".".
* | progmodes/cc-fonts.el (c-font-lock-enum-tail): New function whichAlan Mackenzie2010-10-301-3/+43
| | | | | | | | | | | | fontifies the tail of an enum. (c-basic-matchers-after): Insert a call to the above new function. This fixes bug #7264.
* | progmodes/cc-fonts.el (c-font-lock-declarations): Cache the result ofAlan Mackenzie2010-10-241-11/+23
| | | | | | | | | | `c-beginning-of-decl-1' between invocations of a lambda function (Bug #7265).
* | Enhance fontification of declarators to take account of theAlan Mackenzie2010-10-091-104/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | presence/absence of "typedef". cc-engine.el (c-forward-type): New &optional param "brace-block-too". (c-forward-decl-or-cast-1): cdr of return value now indicates the presence of either or both of a "struct"-like keyword and "typedef". cc-fonts.el (c-complex-decl-matchers): Remove the heuristic fontification of declarators which follow a "}". (c-font-lock-declarations): Fontify declarators according to the presence/absence of "typedef". cc-langs.el (c-typedef-kwds c-typedef-key): New lang variable for "typedef". (c-typedef-decl-key): New lang variable built from c-typedef-decl-kwds.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-2/+2
| |
* | Enhance Java Mode to handle Java 5.0 (Tiger) and Java 6 (Mustang).Alan Mackenzie2010-07-311-0/+7
|/ | | | Contributed by Nathaniel Flath.
* Fix typos in comments.Juanma Barranquero2010-01-141-2/+2
|
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Enhance `c-parse-state' to run efficiently in "brace desserts".Alan Mackenzie2009-12-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * progmodes/cc-mode.el (c-basic-common-init): Call c-state-cache-init. (c-neutralize-syntax-in-and-mark-CPP): Renamed from c-extend-and-neutralize-syntax-in-CPP. Mark each CPP construct by placing `category' properties value 'c-cpp-delimiter at its boundaries. * progmodes/cc-langs.el (c-before-font-lock-function): c-extend-and-neutralize-syntax-in-CPP has been renamed c-neutralize-syntax-in-and-mark-CPP. * progmodes/cc-fonts.el (c-cpp-matchers): Mark template brackets with `category' properties now, not `syntax-table' ones. * progmodes/cc-engine.el (c-syntactic-end-of-macro): A new enhanced (but slower) version of c-end-of-macro that won't land inside a literal or on another awkward character. (c-state-cache-too-far, c-state-cache-start) (c-state-nonlit-pos-interval, c-state-nonlit-pos-cache) (c-state-nonlit-pos-cache-limit, c-state-point-min) (c-state-point-min-lit-type, c-state-point-min-lit-start) (c-state-min-scan-pos, c-state-brace-pair-desert) (c-state-old-cpp-beg, c-state-old-cpp-end): New constants and buffer local variables. (c-state-literal-at, c-state-lit-beg) (c-state-cache-non-literal-place, c-state-get-min-scan-pos) (c-state-mark-point-min-literal, c-state-cache-top-lparen) (c-state-cache-top-paren, c-state-cache-after-top-paren) (c-get-cache-scan-pos, c-get-fallback-scan-pos) (c-state-balance-parens-backwards, c-parse-state-get-strategy) (c-renarrow-state-cache) (c-append-lower-brace-pair-to-state-cache) (c-state-push-any-brace-pair, c-append-to-state-cache) (c-remove-stale-state-cache) (c-remove-stale-state-cache-backwards, c-state-cache-init) (c-invalidate-state-cache-1, c-parse-state-1) (c-invalidate-state-cache): New defuns/defmacros/defsubsts. (c-parse-state): Enhanced and refactored. (c-debug-parse-state): Amended to deal with all the new variables. * progmodes/cc-defs.el (c-<-as-paren-syntax, c-mark-<-as-paren) (c->-as-paren-syntax, c-mark->-as-paren, c-unmark-<->-as-paren): modify to use category text properties rather than syntax-table ones. (c-suppress-<->-as-parens, c-restore-<->-as-parens): new defsubsts to switch off/on the syntactic paren property of C++ template delimiters using the category property. (c-with-<->-as-parens-suppressed): Macro to invoke code with template delims suppressed. (c-cpp-delimiter, c-set-cpp-delimiters, c-clear-cpp-delimiters): New constant/macros which apply category properties to the start and end of preprocessor constructs. (c-comment-out-cpps, c-uncomment-out-cpps): defsubsts which "comment out" the syntactic value of characters in preprocessor constructs. (c-with-cpps-commented-out) (c-with-all-but-one-cpps-commented-out): Macros to invoke code with characters in all or all but one preprocessor constructs "commented out".
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Fix up comment convention on the arch-tag lines.Stefan Monnier2008-04-101-1/+1
|
* Merge from emacs--rel--22Miles Bader2008-02-241-2/+2
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
| * Set of changes so that "obtrusive" syntactic elements in a C/C++/ObjCAlan Mackenzie2008-02-191-2/+2
| | | | | | | | | | | | preprocessor line (e.g. an unbalanced string quote or unmatched paren) don't interact syntactically with stuff outside the CPP line. (c-cpp-matchers): Make it put regexp parens around "error\\|warning".
* | Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\| | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | (gtkdoc-font-lock-doc-comments): Highlight name of parameters in document body.Masatake YAMATO2007-08-231-1/+1
|/
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* Fix fontification of labels, and other things with ":".Alan Mackenzie2007-04-061-37/+55
| | | | | | | | | | * progmodes/cc-engine.el (c-forward-label): The function now returns 'goto-target, 'qt-2kwds-colon, 'qt-1kwd-colon, as well as the former t. * progmodes/cc-fonts.el (c-font-lock-declarations): Interpret the new return code from c-forward-label, fontifying tokens properly. Add some general comments throughout the file.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (c-font-lock-declarations): Fix previous change.Eli Zaretskii2006-12-151-1/+1
|
* (c-font-lock-declarators): Iff at the top-level or inside a classChong Yidong2006-11-151-1/+5
| | | | | | declaration, use c-at-toplevel-p rather than a variable instantiation to recognise a function declaration. Suggested by Feng Li <fengli@gmail.com>.
* (c-font-lock-declarations): Don't overwrite fontification for "case"Chong Yidong2006-11-101-14/+32
| | | | and "default" keywords.
* * progmodes/cc-awk.el, cc-defs.el, cc-fonts.el, cc-langs.el,Alan Mackenzie2006-07-101-104/+10
| | | | cc-mode.el: Changes to eradicate eval-after-load.
* Update copyright for 2006.Nick Roberts2006-02-101-1/+1
|
* Update CC Mode to release 5.31.Alan Mackenzie2005-12-021-1148/+581
|
* Update copyright for release of 22.1 for progmodes directory.Nick Roberts2005-08-011-1/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-430Miles Bader2005-06-171-4/+8
| | | | | | | | | | | Remove "-face" suffix from cc-mode faces 2005-06-17 Miles Bader <miles@gnu.org> * lisp/progmodes/cc-fonts.el (c-nonbreakable-space-face): Remove "-face" suffix from face name. (c-cpp-matchers): Use the variable `c-nonbreakable-space-face' instead of literal face.
* 2005-05-23 Martin Stjernholm <bug-cc-mode@gnu.org>Martin Stjernholm2005-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CC Mode update to 5.30.10: * cc-fonts.el (c-font-lock-declarators): Fixed bug where the point could go past the limit in decoration level 2, thereby causing errors during interactive fontification. * cc-mode.el (c-make-inherited-keymap): Fixed cc-bytecomp bug when the file is evaluated interactively. * cc-engine.el (c-guess-basic-syntax): Handle operator declarations somewhat better in C++. * cc-styles.el, cc-mode.el (c-run-mode-hooks): New helper macro to make use of run-mode-hooks' which has been added in Emacs 21.1. (c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode, awk-mode): Use it. (make-local-hook): Suppress warning about obsoleteness. * cc-engine.el, cc-align.el, cc-cmds.el (c-append-backslashes-forward, c-delete-backslashes-forward, c-find-decl-spots, c-semi&comma-no-newlines-before-nonblanks): Compensate for return value from forward-line' when it has moved but not to a different line due to eob. * cc-engine.el (c-guess-basic-syntax): Fixed anchoring in objc-method-intro' and objc-method-args-cont'. 2005-05-23 Alan Mackenzie <bug-cc-mode@gnu.org> CC Mode update to 5.30.10: * cc-mode.el, cc-engine.el, cc-align.el: Change the FSF's address in the copyright statement. Incidentally, change "along with GNU Emacs" to "along with this program" where it occurs. * cc-mode.el: Add a fourth parameter t' to the awk-mode autoload, so that it is interactive, hence can be found by M-x awk-mode whilst cc-mode is yet to be loaded. Reported by Glenn Morris <gmorris+emacs@ast.cam.ac.uk>. * cc-awk.el: Add character classes (e.g. "[:alpha:]") into AWK Mode's regexps. 2005-05-23 Kevin Ryde <user42@zip.com.au>: * cc-align.el (c-lineup-argcont): Ignore conses for {} pairs from c-parse-state, to avoid a lisp error (on bad code).
* (c-basic-matchers-before): Don't applyKim F. Storm2005-05-121-1/+1
| | | | font-lock-negation-char-face to ! in !=.
* (c-cpp-matchers): Use font-lock-negation-char-face.Daniel Pfeiffer2005-05-051-0/+8
|
* * mh-customize.el (mh-speedbar-selected-folder-face): Special caseDan Nicolaescu2005-04-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | high number of colors displays. * textmodes/table.el (table-cell-face): Add special case for displays supporting a high number of colors. * progmodes/vhdl-mode.el (vhdl-font-lock-prompt-face) (vhdl-font-lock-reserved-words-face) (vhdl-speedbar-architecture-face) (vhdl-speedbar-instantiation-face) (vhdl-speedbar-architecture-selected-face) (vhdl-speedbar-instantiation-selected-face): Likewise. * progmodes/sh-script.el (sh-heredoc-face): Likewise. * progmodes/idlw-help.el (idlwave-help-link-face): Likewise. * progmodes/ebrowse.el (ebrowse-tree-mark-face) (ebrowse-root-class-face, ebrowse-member-attribute-face) (ebrowse-progress-face): Likewise. * progmodes/compile.el (compilation-info-face): Likewise. * progmodes/cc-fonts.el (c-invalid-face): Likewise. * emacs-lisp/re-builder.el (reb-match-3): Likewise. * calendar/calendar.el (diary-face): Likewise. * woman.el (woman-italic-face, woman-bold-face) (woman-unknown-face): Likewise. * wid-edit.el (widget-button-pressed-face): Likewise. * whitespace.el (whitespace-highlight-face): Likewise. * smerge-mode.el (smerge-mine-face, smerge-base-face): Likewise. * pcvs-info.el (cvs-marked-face): Likewise. * info.el (info-xref): Likewise. * ido.el (ido-subdir-face, ido-indicator-face): Likewise. * hilit-chg.el (highlight-changes-face) (highlight-changes-delete-face): Likewise. * hi-lock.el (hi-yellow, hi-green, hi-blue-b, hi-green-b) (hi-red-b): Likewise. * generic-x.el (show-tabs-tab-face, show-tabs-space-face): Likewise. * font-lock.el (font-lock-keyword-face) (font-lock-function-name-face, font-lock-warning-face): Likewise. * cus-edit.el (custom-invalid-face, custom-modified-face) (custom-set-face, custom-changed-face, custom-variable-tag-face) (custom-group-tag-face-1, custom-group-tag-face): Likewise. * comint.el (comint-highlight-prompt): Likewise.
* Updated CC Mode to 5.30.9.Martin Stjernholm2004-08-111-36/+78
|
* CC Mode update (5.30.8).Martin Stjernholm2003-11-161-3/+3
|
* (c-font-lock-declarations): Fixed recognition of constructors andMartin Stjernholm2003-09-241-23/+24
| | | | | | | | | | destructors for classes whose names are matched by `*-font-lock-extra-types'. (c-font-lock-invalid-string): Fixed eob problem that primarily affected XEmacs. Don't use faces to find unterminated strings since Emacs and XEmacs fontify strings differently - this function should now work better in XEmacs.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* 2003-07-08 Martin Stjernholm <bug-cc-mode@gnu.org>Martin Stjernholm2003-07-081-38/+39
| | | | | | | | | | | | | | | | | | | | | | | * cc-engine.el (c-guess-basic-syntax): Do not do hidden buffer changes; there's third party code that calls this function directly. 2003-07-07 Martin Stjernholm <bug-cc-mode@gnu.org> * cc-fonts.el (javadoc-font-lock-keywords, autodoc-font-lock-keywords): Don't byte compile on font lock initialization when running from byte compiled files. 2003-07-06 Alan Mackenzie <bug-cc-mode@gnu.org> * cc-engine.el: Fix AWK mode indentation when previous statement ends with auto-increment "++". 2003-07-05 Martin Stjernholm <bug-cc-mode@gnu.org> * cc-langs.el, cc-styles.el (c-style-alist, c-lang-variable-inits, c-lang-variable-inits-tail): The values of these are changed, so declare them as variables and not constants.
* Updated CC Mode to version 5.30.Martin Stjernholm2003-07-031-0/+2879