From: Phil Tomson Date: 2008-04-23T05:00:26+09:00 Subject: Re: Treetop parser (or PEG in general?) questions On 4/22/08, Iñaki Baz Castillo wrote: > El Martes, 22 de Abril de 2008, Phil Tomson escribió: > > > The first testcase (test_eol_comment) fails, but the second one > > passes. Any idea what's wrong with that comment_to_eol rule? > > > Are you sure? both cases work for me. > > -- > > Iñaki Baz Castillo > > I found out on #treetop IRC that I need to change the comment_eol rule to: rule comment_to_eol '--' (!"\n" .)+ "\n" end Then it'll match: "--this is a comment\n"