Skip to content
Browse files

Actually switch to the proper version of tuplet (thanks to a simple w…

…orkaround from sorear++).
  • Loading branch information...
1 parent 12b0278 commit b5d73f60d26e80be5485582903ab8785769639f1 @colomon committed May 15, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/ABC/Grammar.pm
View
8 lib/ABC/Grammar.pm
@@ -44,11 +44,11 @@ grammar ABC::Grammar
regex t_elem { <gracing> | <grace_notes> | <broken_rhythm> | <slur_begin> | <slur_end> }
# next line should work, but is NYI in Rakudo/Niecza
- # regex tuplet { '('(<digit>+) [<t_elem>* <stem>] ** { +$0 } }
+ regex tuplet { '('(<digit>+) {} [<t_elem>* <stem>] ** { +$0 } <slur_end>? }
# next block makes the most common cases work
- regex tuplet { ['(3' [<t_elem>* <stem>] ** 3 <slur_end>? ]
- | ['(4' [<t_elem>* <stem>] ** 4 <slur_end>? ]
- | ['(5' [<t_elem>* <stem>] ** 5 <slur_end>? ] }
+ # regex tuplet { ['(3' [<t_elem>* <stem>] ** 3 <slur_end>? ]
+ # | ['(4' [<t_elem>* <stem>] ** 4 <slur_end>? ]
+ # | ['(5' [<t_elem>* <stem>] ** 5 <slur_end>? ] }
regex nth_repeat_num { <digit>+ [[',' | '-'] <digit>+]* }
regex nth_repeat_text { '"' .*? '"' }

0 comments on commit b5d73f6

Please sign in to comment.
Something went wrong with that request. Please try again.