lib/yard/parser/cucumber/feature.rb in yard-cucumber-2.1.1 vs lib/yard/parser/cucumber/feature.rb in yard-cucumber-2.1.2
- old
+ new
@@ -36,15 +36,18 @@
def parse
begin
@parser.parse(@source, @file, 0)
@feature = @builder.ast
return nil if @feature.nil? # Nothing matched
- @feature.language = @parser.i18n_language
+
+ # The parser used the following keywords when parsing the feature
+ # @feature.language = @parser.i18n_language.get_code_keywords.map {|word| word }
+
rescue Gherkin::Lexer::LexingError, Gherkin::Parser::ParseError => e
e.message.insert(0, "#{@file}: ")
raise e
end
-
+
self
end
#
# This is not used as all the work is done in the parse method
\ No newline at end of file