Issue #7022 has been updated by Jeff Weiss.

We need to make a decision about single string escape sequences.

There's nothing explicit in the language guide about escape sequences, only 
variable interpolation.

The tests in lexer_spec.rb:419 indicate that we're allowing an escape sequence 
in single-quoted string of \' and \\\\ (consistent with the Ruby rules for 
single-quoted string), but not allowing \$, \., or \n.
----------------------------------------
Bug #7022: Single quoted strings ending with \  not handed correctly
https://projects.puppetlabs.com/issues/7022

Author: R.I. Pienaar
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 0.25.4
Keywords: 
Branch: 


The following:

<pre>
notice('foo\nbar')
</pre>

Works as expected, however:

<pre>
notice('foo\')
</pre>

produces:

<pre>
Could not parse for environment production: Unclosed quote after '' in 'foo\')
' at /home/rip/test.pp:1 on node nephilim.ml.org
</pre>

Oldest puppet I can test on is 0.25.4 newest is 2.6.6, both have this bug


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to