diff options
| author | Markus Roberts <Markus@reality.com> | 2010-07-23 11:31:40 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-07-25 22:24:35 -0700 |
| commit | 000fd1e83782c70fc9d9b032b52d96800cab2121 (patch) | |
| tree | 918b7cab06dfb491592bd8908dfeef2fc4add261 /spec/unit/parser | |
| parent | 1d494a3104e9794cc09ba27c701ced68a74fa398 (diff) | |
| download | puppet-000fd1e83782c70fc9d9b032b52d96800cab2121.tar.gz puppet-000fd1e83782c70fc9d9b032b52d96800cab2121.tar.xz puppet-000fd1e83782c70fc9d9b032b52d96800cab2121.zip | |
Fix for #4303 -- reverting to old escaping in '-strings
Single quoted used to allow escape on single quotes and pass all other
characters through without comment; now the do again.
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/lexer_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/parser/lexer_spec.rb b/spec/unit/parser/lexer_spec.rb index d3d2a0a31..a85d1b257 100755 --- a/spec/unit/parser/lexer_spec.rb +++ b/spec/unit/parser/lexer_spec.rb @@ -410,6 +410,9 @@ describe Puppet::Parser::Lexer,"when lexing strings" do %q{'single quoted string')} => [[:STRING,'single quoted string']], %q{"double quoted string"} => [[:STRING,'double quoted string']], %q{'single quoted string with an escaped "\\'"'} => [[:STRING,'single quoted string with an escaped "\'"']], + %q{'single quoted string with an escaped "\$"'} => [[:STRING,'single quoted string with an escaped "\$"']], + %q{'single quoted string with an escaped "\."'} => [[:STRING,'single quoted string with an escaped "\."']], + %q{'single quoted string with an escaped "\\\\"'} => [[:STRING,'single quoted string with an escaped "\\\\"']], %q{"string with an escaped '\\"'"} => [[:STRING,"string with an escaped '\"'"]], %q{"string with an escaped '\\$'"} => [[:STRING,"string with an escaped '$'"]], %q{"string with $v (but no braces)"} => [[:DQPRE,"string with "],[:VARIABLE,'v'],[:DQPOST,' (but no braces)']], |
