Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
2211bcc7
Commit
2211bcc7
authored
Nov 20, 2020
by
Andrew Wiik
Committed by
Dridi Boukelmoune
Nov 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for new long string format
parent
6f587a30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
vcl.rst
doc/sphinx/reference/vcl.rst
+2
-2
vcl-syntax.rst
doc/sphinx/users-guide/vcl-syntax.rst
+1
-1
No files found.
doc/sphinx/reference/vcl.rst
View file @
2211bcc7
...
@@ -84,7 +84,7 @@ Strings
...
@@ -84,7 +84,7 @@ Strings
Basic strings are enclosed in double quotes ``"``\ *...*\ ``"``, and
Basic strings are enclosed in double quotes ``"``\ *...*\ ``"``, and
may not contain newlines. Long strings are enclosed in
may not contain newlines. Long strings are enclosed in
``{"``\ *...*\ ``"}``. They may contain any character including single
``{"``\ *...*\ ``"}``
or ``"""``\ *...*\ ``"""``
. They may contain any character including single
double quotes ``"``, newline and other control characters except for the
double quotes ``"``, newline and other control characters except for the
*NUL* (0x00) character.
*NUL* (0x00) character.
...
@@ -511,7 +511,7 @@ ban(STRING)
...
@@ -511,7 +511,7 @@ ban(STRING)
Either a literal string or a regular expression. Note that
Either a literal string or a regular expression. Note that
*<arg>* does not use any of the string delimiters like ``"`` or
*<arg>* does not use any of the string delimiters like ``"`` or
``{"``\ *...*\ ``"}`` used elsewhere in varnish. To match
``{"``\ *...*\ ``"}``
or ``"""``\ *...*\ ``"""``
used elsewhere in varnish. To match
against strings containing whitespace, regular expressions
against strings containing whitespace, regular expressions
containing ``\s`` can be used.
containing ``\s`` can be used.
...
...
doc/sphinx/users-guide/vcl-syntax.rst
View file @
2211bcc7
...
@@ -23,7 +23,7 @@ to do the "count-the-backslashes" polka::
...
@@ -23,7 +23,7 @@ to do the "count-the-backslashes" polka::
regsub("barf", "(b)(a)(r)(f)", "\4\3\2p") -> "frap"
regsub("barf", "(b)(a)(r)(f)", "\4\3\2p") -> "frap"
Long strings are enclosed in {" ... "}. They may contain any character
Long strings are enclosed in {" ... "}
or """ ... """
. They may contain any character
including ", newline and other control characters except for the NUL
including ", newline and other control characters except for the NUL
(0x00) character. If you really want NUL characters in a string there
(0x00) character. If you really want NUL characters in a string there
is a VMOD that makes it possible to create such strings.
is a VMOD that makes it possible to create such strings.
...
...
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