unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Subject: Small changes to java font-lock
Date: 27 Feb 2002 23:25:39 +0000	[thread overview]
Message-ID: <87y9heo6bw.fsf@tf1.tapsellferrier.co.uk> (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


             reply	other threads:[~2002-02-27 23:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-27 23:25 Nic Ferrier [this message]
2002-03-01  1:11 ` Small changes to java font-lock Richard Stallman
2002-03-01  1:40   ` Nic Ferrier
2002-03-02 19:50     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y9heo6bw.fsf@tf1.tapsellferrier.co.uk \
    --to=nferrier@tapsellferrier.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).