# File lib/puppet/parser/lexer.rb, line 486
486:     def slurpstring(quote)
487:         # we search for the next quote that isn't preceded by a
488:         # backslash; the caret is there to match empty strings
489:         str = @scanner.scan_until(/([^\\]|^)#{quote}/)
490:         if str.nil?
491:             raise Puppet::LexError.new("Unclosed quote after '%s' in '%s'" %
492:                 [self.last,self.rest])
493:         else
494:             str.sub!(/#{quote}\Z/,"")
495:             str.gsub!(/\\#{quote}/,quote)
496:         end
497: 
498:         # Add to our line count for every carriage return in multi-line strings.
499:         @line += str.count("\n")
500: 
501:         return str
502:     end