emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Small changes to java font-lock


From: Nic Ferrier
Subject: Small changes to java font-lock
Date: 27 Feb 2002 23:25:39 +0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]