@cgm616 PEG grammars are greedy. If you have a choice (a | b), it will always match in-order, so you need to make sure that you preceding rules are not substrings of succeeding rules. More on this in the book.
Whoops, sorry. On mobile this website is hard to use. Anyways, thanks @dragostis, that worked perfectly. Is there a link to the book anywhere on the repo? I couldn’t find it and it might be good to have.