Commit 0a7a30da authored by Andreas Plesner Jacobsen's avatar Andreas Plesner Jacobsen Committed by Tollef Fog Heen

Fix string documentation for 3.0

parent 693b27c3
......@@ -13,6 +13,10 @@ string concatenation operator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
String concatenation did not have an operator previously, but this has now been changed to ``+``.
no more %-escapes in strings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To simplify strings, the %-encoding has been removed. If you need non-printable characters, you need to use inline C.
``log`` moved to the std vmod
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
......@@ -39,11 +39,11 @@ In addition to the C-like assignment (=), comparison (==, !=) and
boolean (!, && and \|\|) operators, VCL supports both regular
expression and ACL matching using the ~ and the !~ operators.
Basic strings are enclosed in " ... " and uses URL-style %-escapes.
Basic strings are enclosed in " ... ", and may not contain newlines.
Long strings are enclosed in {" ... "} and do not have an escape
character. They may contain any character including ", newline and
other control characters except for the NUL (0x00) character.
Long strings are enclosed in {" ... "}. They may contain any
character including ", newline and other control characters except
for the NUL (0x00) character.
Unlike C and Perl, the backslash (\) character has no special meaning
in strings in VCL, so it can be freely used in regular expressions
......
......@@ -492,7 +492,7 @@ vcc_Lexer(struct vcc *tl, struct source *sp)
continue;
}
/* Match strings, with \\ and \" escapes */
/* Match strings */
if (*p == '"') {
for (q = p + 1; q < sp->e; q++) {
if (*q == '"') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment