* Small changes to java font-lock
@ 2002-02-27 23:25 Nic Ferrier
2002-03-01 1:11 ` Richard Stallman
0 siblings, 1 reply; 4+ messages in thread
From: Nic Ferrier @ 2002-02-27 23:25 UTC (permalink / raw)
The current font-lock is not quite right for java.
The problem is illustrated by the well used java class:
java.net.URL
When the classname is used unqualified it is not fontified.
The patch below fixes the problem.
*** lisp/font-lock.el Mon Dec 31 20:16:46 2001
--- lisp/font-lock.el Wed Feb 27 23:20:59 2002
***************
*** 2206,2212 ****
:group 'font-lock-extra-types)
(defcustom java-font-lock-extra-types
! '("[A-Z\300-\326\330-\337]\\sw*[a-z]\\sw*")
"*List of extra types to fontify in Java mode.
Each list item should be a regexp not containing word-delimiters.
For example, a value of (\"[A-Z\300-\326\330-\337]\\\\sw*[a-z]\\\\sw*\") means capitalised
--- 2206,2212 ----
:group 'font-lock-extra-types)
(defcustom java-font-lock-extra-types
! '("[A-Z\300-\326\330-\337]\\sw*[a-zA-Z]\\sw*")
"*List of extra types to fontify in Java mode.
Each list item should be a regexp not containing word-delimiters.
For example, a value of (\"[A-Z\300-\326\330-\337]\\\\sw*[a-z]\\\\sw*\") means capitalised
Nic Ferrier
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-03-02 19:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-27 23:25 Small changes to java font-lock Nic Ferrier
2002-03-01 1:11 ` Richard Stallman
2002-03-01 1:40 ` Nic Ferrier
2002-03-02 19:50 ` Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.