[master] 6b61e28 Follow style guide lines
Guillaume Quintard
guillaume at varnish-software.com
Mon Jun 6 11:01:08 CEST 2016
commit 6b61e286b08e81e89aac26aa0b0b1f46329ec55e
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Mon May 30 17:27:17 2016 +0200
Follow style guide lines
diff --git a/doc/sphinx/reference/vtc.rst b/doc/sphinx/reference/vtc.rst
index 443015b..a96702a 100644
--- a/doc/sphinx/reference/vtc.rst
+++ b/doc/sphinx/reference/vtc.rst
@@ -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
diff --git a/doc/sphinx/vtc-syntax.awk b/doc/sphinx/vtc-syntax.awk
index ef67591..e481c26 100644
--- a/doc/sphinx/vtc-syntax.awk
+++ b/doc/sphinx/vtc-syntax.awk
@@ -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]));
More information about the varnish-commit
mailing list