]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/update-snippets.py
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / 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):