From e7e41951af3d8150c3dbf38fe9ea9ec79cc34dee Mon Sep 17 00:00:00 2001 From: schinz Date: Mon, 25 Aug 2003 08:13:11 +0000 Subject: - bug fix: correctly highlight identifier start... - bug fix: correctly highlight identifier starting with "class" or "extends", - changed the URL for the Scala page --- support/emacs/scala-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'support/emacs') diff --git a/support/emacs/scala-mode.el b/support/emacs/scala-mode.el index 6d6fe00f84..f6cafa71e1 100644 --- a/support/emacs/scala-mode.el +++ b/support/emacs/scala-mode.el @@ -10,7 +10,7 @@ (defconst scala-mode-version "0.3 ($Revision$)") (defconst scala-bug-e-mail "Michel.Schinz@epfl.ch") -(defconst scala-web-url "http://lampwww.epfl.ch/scala/") +(defconst scala-web-url "http://lamp.epfl.ch/scala/") ;; Customization @@ -514,7 +514,7 @@ When called repeatedly, indent each time one stop further on the right." (0 font-lock-type-face nil))) ;; class definitions - ("\\" + ("\\<\\(class\\|trait\\)\\>" (scala-match-and-skip-ident (goto-char (match-end 0)) nil (1 font-lock-type-face nil)) (scala-match-and-skip-type-param nil nil @@ -524,7 +524,7 @@ When called repeatedly, indent each time one stop further on the right." (2 font-lock-type-face nil t))) ;; "extends" and "with" clauses - ("\\\\s *[^{]" + ("\\<\\(extends\\|with\\)\\>\\s *[^{]" (scala-match-and-skip-ident (goto-char (1- (match-end 0))) nil (0 font-lock-type-face nil)) (scala-match-and-skip-type-param nil nil -- cgit v1.2.3