These are all the places where we simply copy the input line to our
output. We are going to do something more complicated in a moment, so
centralising this is useful.
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
w=list([Tainted(x) for x in w])
keyword=w[0]
current=obstack[len(obstack)-1]
+ copyout=lambda: [i]
if keyword=='end-definitions':
keyword.raw_mark_ok()
allow_defs=sitelevel.depth
obstack=[root]
- return [i]
+ return copyout()
if keyword=='include':
if not allow_include:
complain("include not permitted here")
current.children[tname]=nl
current=nl
obstack.append(current)
- return [i]
+ return copyout()
if keyword.raw() not in current.allow_properties:
complain("Property %s not allowed at %s level"%
(keyword.raw(),current.type))
return []
else:
set_property(current,w)
- return [i]
+ return copyout()
complain("unknown keyword '%s'"%(keyword.raw()))