diff options
author | Luke Kanies <luke@madstop.com> | 2008-02-13 16:27:35 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-02-13 16:27:35 -0600 |
commit | 0cfa1d2b7ae38020d3b845d7713cb10cda7facef (patch) | |
tree | fcfa2861cb0174ab610235a14c69909d094de4a8 /lib/puppet/parser/lexer.rb | |
parent | 8367fdfab25aacb56f16444f5763b347e6a907ab (diff) | |
download | puppet-0cfa1d2b7ae38020d3b845d7713cb10cda7facef.tar.gz puppet-0cfa1d2b7ae38020d3b845d7713cb10cda7facef.tar.xz puppet-0cfa1d2b7ae38020d3b845d7713cb10cda7facef.zip |
Fixed #968 again, this time with tests -- parseonly works,
including not compiling the configurations, and also storeconfigs
is no longer required during parse-testing.
Diffstat (limited to 'lib/puppet/parser/lexer.rb')
-rw-r--r-- | lib/puppet/parser/lexer.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/parser/lexer.rb b/lib/puppet/parser/lexer.rb index 6661650ba..51026ea1b 100644 --- a/lib/puppet/parser/lexer.rb +++ b/lib/puppet/parser/lexer.rb @@ -33,7 +33,11 @@ class Puppet::Parser::Lexer end def to_s - "Lexer token %s" % @name.to_s + if self.string + @string + else + @name.to_s + end end end |