Sha256: 68ab5dd213ab5e11fd734733b6c21b54824d60c00fd5b0b165aa2494fbbc1db2

Contents?: true

Size: 989 Bytes

Versions: 6

Compression:

Stored size: 989 Bytes

Contents

module Cucumber
  module Parser
    module I18n
      grammar <%= keywords('grammar_name', true) %>
        include Common
        include Feature
        include Table
        include PyString

        rule feature
          feature_sub
        end

        rule background_keyword
          (<%= keywords('background') %>) ':'
        end

        rule scenario_keyword
          (<%= keywords('scenario') %>) ':'
        end

        rule scenario_outline_keyword
          (<%= keywords('scenario_outline') %>) ':'
        end

        rule step_keyword
          (<%= keywords('given') %>) /
          (<%= keywords('when') %>) /
          (<%= keywords('then') %>) /
          (<%= keywords('and') %>) /
          (<%= keywords('but') %>)
        end

        rule keyword_space
          <%= keywords('space_after_keyword', true) ? 'space+' : 'space*' %>
        end

        rule examples_keyword
          (<%= keywords('examples') %>) ':'?
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
middleman-0.10.17 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/parser/i18n.tt
middleman-0.10.16 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/parser/i18n.tt
middleman-0.10.15 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/parser/i18n.tt
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/parser/i18n.tt
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/parser/i18n.tt
cucumber-0.4.4 lib/cucumber/parser/i18n.tt