summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
Commit message (Collapse)AuthorAgeFilesLines
* (font-lock-beginning-of-syntax-function): Doc fix.Richard M. Stallman2002-06-121-5/+10
|
* (font-lock-set-defaults-1): Set variable alist here.Colin Walters2002-06-121-2/+3
|
* (font-lock-set-defaults-1): Variable alist is now set inColin Walters2002-06-091-6/+5
| | | | `font-lock-set-defaults'.
* (font-lock-defaults, font-lock-defaults-alist)Colin Walters2002-05-211-339/+46
| | | | | | | (font-lock-multiline, font-lock-fontified, font-lock-mode) (turn-on-font-lock, font-lock-add-keywords, global-font-lock-mode) (font-lock-global-modes): Moved to font-core.el. (font-lock-set-defaults-1): Partially moved to font-core.el.
* (save-buffer-state): Fix last change.Eli Zaretskii2002-03-301-1/+1
|
* (save-buffer-state): Use make-symbol to bind `modified'.Eli Zaretskii2002-03-291-8/+14
|
* (java-font-lock-extra-types): Add "URL" as separate item. Doc fix.Pavel Janík2002-03-111-3/+4
|
* (lisp-font-lock-keywords-2): Highlight keywords ofGerd Moellmann2002-03-061-1/+1
| | | | the form `:x'.
* Doc fix.Stefan Monnier2002-03-051-1/+4
|
* (java-font-lock-extra-types): Match java.net.URL, etc.Richard M. Stallman2002-03-011-1/+1
|
* (save-buffer-state): Use restore-buffer-modified-p.Stefan Monnier2002-02-081-3/+5
| | | | (c-font-lock-syntactic-face-function): Accept doxygen-style comments.
* (initializing from font-lock-face-attributes):Richard M. Stallman2001-12-311-27/+27
| | | | | Use :weight and :slant, not :bold and :italic. (various face definitions): Likewise.
* (font-lock-mode): Put our function at the end of after-change-functions.Richard M. Stallman2001-12-111-1/+1
|
* (font-lock-cache-state, font-lock-cache-position)Stefan Monnier2001-11-251-52/+10
| | | | | | | | | (font-lock-ppss-stats, font-lock-ppss): Remove. (font-lock-fontify-syntactically-region): Remove tuning code. (font-lock-compile-keywords): Fix off-by-one bug. (font-lock-set-defaults): Don't set removed vars. (c-keywords): Add `inline'. (c-type-names): Add `_Complex', `_Imaginary' and `_Bool'.
* (font-lock-compile-keywords): New arg `regexp'.Stefan Monnier2001-11-181-158/+184
| | | | | | | | | | | | | | | If set and if applicable, add a regexp to highlight defun-like text inside comments and strings. (font-lock-fontify-keywords-region): Pass that new arg. (font-lock-set-defaults): Move the code to set `font-lock-keywords' to the end and pass that new arg. (c-font-lock-keywords-2): Fix regex for labels. (font-lock-match-c++-style-declaration-item-and-skip-to-next): Make it work when LIMIT is several lines further. (c-font-lock-keywords-3, c++-font-lock-keywords-3) (objc-font-lock-keywords-3, java-font-lock-keywords-3): Use backquote and make the regexes for `int a, b, c;' work on multiple lines.
* (font-lock-match-c-style-declaration-item-and-skip-to-next):Stefan Monnier2001-11-061-6/+6
| | | | Also work when LIMIT is further than the end of line.
* (java-font-lock-syntactic-face-function): New fun.Stefan Monnier2001-10-311-1/+19
| | | | (font-lock-defaults-alist): Use it. From David Ponce <david.ponce@wanadoo.fr>
* Require `syntax'.Stefan Monnier2001-10-281-201/+212
| | | | | | | | | | | | | | | | | | | | | | | | | (font-lock-defaults-alist): Don't define keywords for lisp languages. Use `c-font-lock-syntactic-face-function' for c languages. (font-lock-mode): Don't unset vars when turning the mode off. (font-lock-default-fontify-buffer): Don't unset vars at the end. (font-lock-extra-managed-props): New var. (font-lock-default-unfontify-region): Use it. (font-lock-apply-syntactic-highlight): Flush the syntax cache. Don't eval the value when there's no match. (font-lock-ppss-stats): New var. (font-lock-ppss): New fun. (font-lock-fontify-syntactically-region): Use it and syntax.ppss. (font-lock-apply-highlight): Allow `highlight' to set several props. (font-lock-set-defaults): Use dolist. (font-lock-unset-defaults): Remove. (font-lock-match-c-style-declaration-item-and-skip-to-next): Try to recognize prototypes using `foo P_ ((args))'. ({c,c++,java,objc}-font-lock-keywords-{1,2,3}): Don't setq a defconst. (c-font-lock-keywords-2): Fix last change to still use Anders' trick. (c-font-lock-syntactic-face-function): New function. (font-lock-match-c++-style-declaration-item-and-skip-to-next) (c++-keywords): Use a more sophisticated regexp to handle shallowly nested templates.
* (c-font-lock-keywords-2): Do not require labels to be alone on the line.Sam Steingold2001-10-261-8/+3
|
* (toplevel): Require `jit-lock' only ifGerd Moellmann2001-09-051-1/+3
| | | | font-lock-support-mode is set to jit-lock-mode.
* (c++-keywords): Add Standard C++ operator names.Gerd Moellmann2001-07-191-1/+4
|
* (c-font-lock-keywords-3): When matching somethingGerd Moellmann2001-07-041-1/+5
| | | | like `struct X Y', finish with point after Y.
* (font-lock-comment-face): For tty's with darkEli Zaretskii2001-06-151-1/+1
| | | | | background, use "red1", since "lightred" is not one of the colors recognized by tty-colors.el.
* (lisp-font-lock-keywords-1): Add `defvaralias'.Gerd Moellmann2001-05-201-1/+1
|
* Docstring fixes.Stefan Monnier2001-05-111-10/+23
|
* (font-lock-mode): Doc fix.Eli Zaretskii2001-04-301-2/+3
|
* made font-lock-keywords-case-fold-search buffer-localSam Steingold2001-04-051-0/+1
|
* (save-buffer-state): Use inhibit-modification-hooksStefan Monnier2001-03-011-1/+1
| | | | rather than (before|after)-change-functions.
* (font-lock-mode): Doc fix.Eli Zaretskii2001-01-231-1/+2
|
* (font-lock-default-fontify-region): Fix lastGerd Moellmann2001-01-191-4/+4
| | | | change.
* (font-lock-multiline): Default to nil.Gerd Moellmann2001-01-191-5/+7
| | | | | (font-lock-default-fontify-region): If font-lock-multiline is nil, don't check the property `font-lock-multiline'.
* (c-font-lock-extra-types): Add "Lisp_Object".Kenichi Handa2001-01-101-1/+1
|
* (font-lock-default-fontify-region):Stefan Monnier2000-12-071-8/+6
| | | | | Include the terminating \n (off-by-one error). (font-lock-set-defaults): Use dolist.
* (java-keywords): Add MATCH-HIGHLIGHT part forGerd Moellmann2000-11-201-1/+2
| | | | javadoc tags.
* (font-lock-*-face) <defvar>: Move.Stefan Monnier2000-11-101-101/+97
| | | | | | | | | | | | (font-lock-defaults-alist): Mark obsolete. (font-lock-mode, font-lock-mode-hook) <defvar>: Remove. (font-lock-mode): Use define-minor-mode. (font-lock-support-mode): Tweak type to default to jit-lock-mode. (font-lock-turn-off-thing-lock): Be more explicit. (font-lock-apply-syntactic-highlight): Use string-to-syntax after eval. (font-lock-syntactic-face-function): New var. (font-lock-fontify-syntactically-region): Use it. (font-lock-doc-face): New.
* (font-lock-buffers): Remove.Stefan Monnier2000-11-031-95/+35
| | | | | | | | | | | (font-lock-global-modes): Define with easy-mmode-define-global-mode. (font-lock-change-major-mode): Remove. (turn-on-font-lock-if-enabled): Only apply to the current buffer. (font-lock-default-fontify-region): Extend the multiline fontification to whole lines. (font-lock-fontify-anchored-keywords) (font-lock-fontify-keywords-region): If matching just one line (with \n) only mark the \n as multiline.
* (font-lock-comment-face): Define a separate defaultEli Zaretskii2000-10-171-1/+2
| | | | for dark-background tty's.
* (font-lock-syntactic-keywords): Fix docstring.Stefan Monnier2000-10-151-12/+10
|
* (font-lock-syntactically-fontified): New var.Stefan Monnier2000-10-151-2/+12
| | | | | (font-lock-fontify-syntactic-keywords-region): Use it. (font-lock-mode): Fix docstring. Don't need make-local-hook anymore.
* (font-lock-comment-face): Change dark-background,Miles Bader2000-10-151-1/+1
| | | | color, non-tty, default to `chocolate1'.
* (font-lock-defaults): Make buffer-local.Stefan Monnier2000-10-081-7/+9
| | | | | | | | (font-lock-turn-on-thing-lock): Use jit-lock-refontify. (font-lock-choose-keywords): Ignore LEVEL unless KEYWORDS is a list of syms. (c-keywords, c++-keywords, objc-keywords, java-keywords): Don't wrap regexp-opt things in \(...\) unnecessarily.
* (font-lock-mode, global-font-lock-mode): Mention inEli Zaretskii2000-10-081-1/+9
| | | | the doc strings how to customize Font Lock faces.
* (font-lock-defaults-alist): Remove the TeX entries.Stefan Monnier2000-10-061-157/+23
| | | | | | | | | | | (tex-font-lock-keywords, tex-font-lock-keywords-2) (tex-font-lock-keywords-1): Remove. (font-lock-turn-on-thing-lock): Use jit-lock-register. (font-lock-turn-off-thing-lock): Use jit-lock-unregister. (font-lock-default-fontify-region): Expand beg..end correctly when just following a multiline region. (font-lock-fontify-anchored-keywords): Include the anchor text as part of the multiline.
* Replace confusing (,@ with ,Stefan Monnier2000-09-291-125/+79
| | | | | | | (tex-font-lock-keywords-1, tex-font-lock-keywords-2): Don't use regexp-opt-depth. Spice up the regexp for args. Don't distinguish between cmds that can take an opt arg or not. Use `append' and `prepend' rather than `keep'.
* (font-lock-mode): Change message telling the userGerd Moellmann2000-09-191-1/+2
| | | | that ``the buffer is too big''.
* Require jit-lock to prevent a late message `Loading jit-lock' message.Gerd Moellmann2000-08-151-0/+1
|
* * emacs-lisp/cl-indent.el (toplevel): Indent `defclass',Sam Steingold2000-08-071-2/+5
| | | | | `defconst', `define-condition', `with-slots'. * font-lock.el (lisp-font-lock-keywords-2): Added `with-' and `do-'.
* (font-lock-fontify-anchored-keywords): Use line-beginning-position.Dave Love2000-06-231-5/+6
| | | | | (font-lock-support-mode) <defgroup>: Add :version. (global-font-lock-mode): Use mapc.
* (font-lock-after-fontify-buffer)Stefan Monnier2000-06-171-4/+12
| | | | (font-lock-after-unfontify-buffer): No need to call back to jit-lock.
* (lisp-font-lock-keywords-1): Add define-minor-mode.Stefan Monnier2000-05-121-2/+2
|