]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/lilypond-book.py
* lily/time-signature-performer.cc (derived_mark): new function.
[lilypond.git] / scripts / lilypond-book.py
index 5b24c8e0a664f855628efb5f3cd352fe169a14f9..bb90debaf7e323f2bab4d495b3425f5e863b2e92 100644 (file)
@@ -1088,13 +1088,14 @@ def find_toplevel_snippets (s, types):
                                if snippet_type_to_class.has_key (type):
                                        cl = snippet_type_to_class[type]
 
+                               
+                               start = index + m.start ('match')
                                line_number = line_start_idx
-                               while (line_starts[line_number] < index):
+                               while (line_starts[line_number] < start):
                                        line_number += 1
 
                                line_number += 1
                                snip = cl (type, m, format, line_number)
-                               start = index + m.start ('match')
                                found[type] = (start, snip)
 
                        if found[type] \