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
6b61e286
Commit
6b61e286
authored
May 30, 2016
by
Guillaume Quintard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow style guide lines
parent
b4be194e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
vtc.rst
doc/sphinx/reference/vtc.rst
+3
-3
vtc-syntax.awk
doc/sphinx/vtc-syntax.awk
+3
-5
No files found.
doc/sphinx/reference/vtc.rst
View file @
6b61e286
...
...
@@ -31,21 +31,21 @@ this happens, please refer yourself to the related source file and line
number. However, this guide should help you avoid the most common mistakes.
Words and strings
~~~~~~~~~~~~~~~~~
-----------------
The parser splits words by detecting whitespace characters and a string is a
word, or a series of words on the same line enclosed by double-quotes ("..."),
or, for multi-line strings, enclosed in curly brackets ({...}).
Comments
~~~~~~~~
--------
The leading whitespaces of lines are ignored. Empty lines (or ones consisting
only of whitespaces) are ignored too, as are the lines starting with "#" that
are comments.
Lines and commands
~~~~~~~~~~~~~~~~~~
------------------
Test files take at most one command per line, with the first word of the line
being the command and the following ones being its arguments. To continue over
...
...
doc/sphinx/vtc-syntax.awk
View file @
6b61e286
...
...
@@ -26,13 +26,11 @@ END {
a
=
section
c
=
gsub
(
/
\.
/
,
""
,
a
);
if
(
c
==
0
)
r
=
"
=
"
;
r
=
"
-
"
;
else
if
(
c
==
1
)
r
=
"
*
"
r
=
"
~
"
else
if
(
c
==
2
)
r
=
"+"
else
if
(
c
==
3
)
r
=
"-"
r
=
"."
else
r
=
"."
print
(
gensub
(
/./
,
r
,
"g"
,
tl
[
section
]));
...
...
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