Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(310)

Unified Diff: scripts/lilypond-book.py

Issue 813048: Change lilypond-book's LaTeX environment option placement (Closed)
Patch Set: Fix last change which got the new syntax example wrong. Created 13 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Documentation/usage/lilypond-book.itely ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/lilypond-book.py
diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py
index b4bd319a690d3b35aa27b969a7d0b4edd2d0435a..5b9adede20ab5c287f8a4aca7141a243fa5141ef 100644
--- a/scripts/lilypond-book.py
+++ b/scripts/lilypond-book.py
@@ -464,10 +464,10 @@ snippet_res = {
r'''(?smx)
^[^%\n]*?
(?P<match>
- \\begin\s*(
+ \\begin\s*(?P<env>{lilypond}\s*)?(
\[
\s*(?P<options>.*?)\s*
- \])?\s*{lilypond}
+ \])?(?(env)|\s*{lilypond})
(?P<code>.*?)
^[^%\n]*?
\\end\s*{lilypond})''',
« no previous file with comments | « Documentation/usage/lilypond-book.itely ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b