lib/cucumber/parser/feature.tt in aslakhellesoy-cucumber-0.3.96 vs lib/cucumber/parser/feature.tt in aslakhellesoy-cucumber-0.3.97

- old
+ new

@@ -76,11 +76,11 @@ end } end rule comment_line - '#' line_to_eol + space* '#' line_to_eol end rule background comment white background_keyword space* name:lines_to_keyword? (eol+ / eof) steps { def matches_name?(regexp_to_match) @@ -260,11 +260,11 @@ end } end rule examples - space* examples_keyword space* name:lines_to_keyword? eol table white { + comment space* examples_keyword space* name:lines_to_keyword? eol table white { def at_line?(line) examples_keyword.line == line || table.at_line?(line) end @@ -283,10 +283,10 @@ def matches_name?(regexp_to_match) name.build =~ regexp_to_match end def build(filter, scenario_outline) - [examples_keyword.line, examples_keyword.text_value, name.build, table.raw(filter, scenario_outline)] + [comment.build, examples_keyword.line, examples_keyword.text_value, name.build, table.raw(filter, scenario_outline)] end } end rule multiline_arg