+2002-04-13 Heikki Junes <hjunes@cc.hut.fi>
+
+ * lilypond-mode.el: Prevent recoloring strings and comments.
+
+ * lilypond-font-lock.el: Handle block comments: block comments
+ can have also ordinary comments inside.
+
2002-04-13 Han-Wen <hanwen@cs.uu.nl>
* input/regression/tie-grace.ly: new file.
* lily/tie-engraver.cc (create_grobs): fix tied graces.
-2002-04-13 Han-Wen <hanwen@cs.uu.nl>
-
* lily/note-spacing.cc (stem_dir_correction): set fixed space for
knee correction. Fixes tight spacing for knees.
MAJOR_VERSION=1
MINOR_VERSION=5
PATCH_LEVEL=52
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=hjj1
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
;; Author: 1995-1996 Barry A. Warsaw
;; 1992-1994 Tim Peters
;; Created: Feb 1992
-;; Version: 1.5.51
-;; Last Modified: 12APR2002
+;; Version: 1.5.52
+;; Last Modified: 13APR2002
;; Keywords: lilypond languages music notation
;; This software is provided as-is, without express or implied
;; highlight scheme; Urgh. should count '(':s, then continue up to last ')'
'("[_^-]?#\\(#[ft]\\|['`](lines[^)]*))\\|['`][a-zA-Z-:]+\\|['`]?([^)]*)\\|-?[0-9.]+\\|\"[^\"]*\"\\)" 0 font-lock-string-face t)
-;; (re)highlight strings
+;; highlight strings
'("[_^-]?\"[^\"]*\"" 0 font-lock-string-face t)
-;; (re)highlight comments
- '("\\(%.*\\)" 0 font-lock-comment-face t)
+;; highlight (block) comments; urgh. block comments should be updatable
+ '("\\(%\\({[^%]*%\\(}\\|\\([^}][^%]*%\\)+}\\)\\|.*\\)\\)" 0 font-lock-comment-face t)
)
)
(require 'easymenu)
(require 'compile)
-(defconst LilyPond-version "1.5.51"
+(defconst LilyPond-version "1.5.52"
"`LilyPond-mode' version number.")
(defconst LilyPond-help-address "bug-lilypond@gnu.org"
(make-local-variable 'font-lock-defaults)
(setq font-lock-defaults '(LilyPond-font-lock-keywords))
+ ; string and comments are fontified explicitly
+ (make-local-variable 'font-lock-keywords-only)
+ (setq font-lock-keywords-only t)
+
(make-local-variable 'paragraph-separate)
(setq paragraph-separate "^[ \t]*$")