Permalink
Browse files

Tweaks to the grammar: allow \ at the end of lines, ( and ) in long g…

…racing text.
  • Loading branch information...
1 parent cb97b26 commit 86f9b6663e06b2fe1424a4ec1a39692d47680a9e @colomon committed May 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ABC/Grammar.pm
View
@@ -32,7 +32,7 @@ grammar ABC::Grammar
regex acciaccatura { '/' }
regex grace_notes { '{' <acciaccatura>? <grace_note_stem>+ '}' }
- regex long_gracing_text { [<alpha> | '.']+ }
+ regex long_gracing_text { [<alpha> | '.' | ')' | '(']+ }
regex long_gracing { '+' <long_gracing_text> '+' }
regex gracing { '.' | '~' | <long_gracing> }
@@ -73,7 +73,7 @@ grammar ABC::Grammar
regex bar { <element>+ <barline>? }
- regex line_of_music { <barline>? <bar>+ }
+ regex line_of_music { <barline>? <bar>+ '\\'? }
regex music { [<line_of_music> \s*\v?]+ }

0 comments on commit 86f9b66

Please sign in to comment.