]> git.donarmstrong.com Git - lilypond.git/commitdiff
match unending strings at eof.
authorHeikki Junes <heikki.junes@hut.fi>
Thu, 12 Jun 2003 10:14:34 +0000 (10:14 +0000)
committerHeikki Junes <heikki.junes@hut.fi>
Thu, 12 Jun 2003 10:14:34 +0000 (10:14 +0000)
ChangeLog
lilypond-font-lock.el

index 33745a9e2b3fffda15e2e8051bac03e057becd06..816e52bc9ef56643e689ab29899aeb4b6130de27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,8 @@
 
        * Documentation/user/music-glossary.tely: fix: change รค to @"a.
 
+       * lilypond-font-lock.el: match unending string at eof.
+       
 2003-06-10  Graham Percival  <gperlist@shaw.ca>
 
    * input/test/beam-abbrev.ly input/test/default-neutral-dir.ly
index 8c53441510005d844aa93c53c430901d502a4dbf..6e1e6ee91b74015545afca457bbcd445d4f100ab 100644 (file)
 ;; "on top", ... (multiline-)scheme: try find slurs up to 7th
       '("[_^-]?#\\(#[ft]\\|-?[0-9.]+\\|\"[^\"]*\"\\|['`]?[a-zA-Z:-]+\\|['`]?([^()]*\\(([^()]*\\(([^()]*\\(([^()]*\\(([^()]*\\(([^()]*\\(([^)]*)[^()]*\\)*)[^()]*\\)*)[^()]*\\)*)[^()]*\\)*)[^()]*\\)*)[^()]*\\)*[^)]*)\\)" 0 font-lock-string-face t)
 
-;; "on top", ... strings
-      '("\\([_^-]?\"\\([^\"\\\\]\\|\\\\.\\|\\\\\n\\)*\"\\)" 0 font-lock-string-face t)
+;; "on top", ... strings, match also unending strings at eof:
+;;               if '\n' was not found, it must be '$' which is eof (?).
+      '("\\([_^-]?\"\\([^\"\\\\]\\|\\\\.\\|\\\\\n\\)*\\(\"\\|$\\)\\)" 0 font-lock-string-face t)
 
 ;; "on top", ... (multiline-)comments
       '("\\(%\\({[^%]*%\\(}\\|\\([^}][^%]*%\\)+}\\)\\|.*\\)\\)" 0 font-lock-comment-face t)