Title: Message Title
Joshua Partlow commented on an issue
Puppet / Bug PUP-2714
Future parser returns nil when parsing a source that contains no statements
Consider the following example:

{code}
require 'puppet'
require 'puppet/pops'

parser = Puppet::Pops::Parser::Parser.new

result = parser.parse_string('# This is a comment')

puts "Result: #{result.inspect}"

result = parser.parse_string <<-EOM
# This is a comment
$foo = 1
EOM

puts "Result: #{result.inspect}"
{code}

The result is:
...

--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to