]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix update-snippets.py '@lilypond' regexp
authorJohn Mandereau <john.mandereau@gmail.com>
Mon, 21 Apr 2008 22:05:56 +0000 (00:05 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Mon, 21 Apr 2008 22:05:56 +0000 (00:05 +0200)
buildscripts/update-snippets.py

index d5503c09a64451711a63d18a71648f70be3b30ea..6b70c79467b50bb3084efe6a401cb60c597658b5 100644 (file)
@@ -23,7 +23,7 @@ import re
 print "update-snippets.py"
 
 comment_re = re.compile (r'(?<!@)(@c(?:omment)? .*?\n|^@ignore\n.*?\n@end ignore\n)', re.M | re.S)
-snippet_re = re.compile (r'(@lilypond(?:file)?(?:\[.*?\])?(?:\{.+?\}|(?:.|\n)+?@end lilypond))', re.M)
+snippet_re = re.compile (r'^(@lilypond(?:file)?(?:\[.*?\])?\s*\{.+?\}|@lilypond(?:\[.*?\])?(?:.|\n)+?@end lilypond)', re.M)
 
 
 def snippet_split (l):