Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
0a7a30da
Commit
0a7a30da
authored
Sep 06, 2011
by
Andreas Plesner Jacobsen
Committed by
Tollef Fog Heen
Sep 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix string documentation for 3.0
parent
693b27c3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
upgrade.rst
doc/sphinx/installation/upgrade.rst
+4
-0
vcl.rst
doc/sphinx/reference/vcl.rst
+4
-4
vcc_token.c
lib/libvcl/vcc_token.c
+1
-1
No files found.
doc/sphinx/installation/upgrade.rst
View file @
0a7a30da
...
...
@@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
doc/sphinx/reference/vcl.rst
View file @
0a7a30da
...
...
@@ -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 %-escap
es.
Basic strings are enclosed in " ... "
, and may not contain newlin
es.
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
...
...
lib/libvcl/vcc_token.c
View file @
0a7a30da
...
...
@@ -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
==
'"'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment