Commit 3f242510 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make $ lines terminate on the first '\n[^ \t]'.

Add arg names to synopsis
parent cd031cb6
...@@ -422,9 +422,9 @@ class prototype(object): ...@@ -422,9 +422,9 @@ class prototype(object):
t = i.vcl() t = i.vcl()
if t in privs: if t in privs:
continue continue
if i.nm is not None:
t += " " + i.nm
if not short: if not short:
if i.nm is not None:
t += " " + i.nm
if i.defval is not None: if i.defval is not None:
t += "=" + i.defval t += "=" + i.defval
if i.opt: if i.opt:
...@@ -843,18 +843,13 @@ class vcc(object): ...@@ -843,18 +843,13 @@ class vcc(object):
s = a.split("\n$") s = a.split("\n$")
self.copyright = s.pop(0).strip() self.copyright = s.pop(0).strip()
while len(s): while len(s):
ss = s.pop(0) ss = re.split('\n([^\t ])', s.pop(0), maxsplit=1)
i = ss.find("\n\n") c = ss[0].split()
if i > -1: d = "".join(ss[1:])
i += 1
else:
i = len(ss)
inputline = ss[:i]
c = ss[:i].split()
m = dispatch.get(c[0]) m = dispatch.get(c[0])
if m is None: if m is None:
err("Unknown stanze $%s" % ss[:i]) err("Unknown stanze $%s" % ss[:i])
m([c[0], " ".join(c[1:])], ss[i:].split('\n'), self) m([c[0], " ".join(c[1:])], d.split('\n'), self)
inputline = None inputline = None
def rst_copyright(self, fo): def rst_copyright(self, fo):
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
$Module debug 3 Development, test and debug $Module debug 3 Development, test and debug
$ABI strict $ABI strict
$Prefix xyzzy $Prefix xyzzy
DESCRIPTION DESCRIPTION
=========== ===========
...@@ -118,8 +117,7 @@ Encrypt the HTTP header with quad-ROT13 encryption, ...@@ -118,8 +117,7 @@ Encrypt the HTTP header with quad-ROT13 encryption,
$Function STRING argtest( $Function STRING argtest(
STRING one, REAL two =2, STRING three= "3", STRING one, REAL two =2, STRING three= "3",
STRING comma=",", INT four = 4, STRING comma=",", INT four = 4,
[ STRING opt] [ STRING opt])
)
$Function INT vre_limit() $Function INT vre_limit()
......
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