Commit 279efc20 authored by Stefan Behnel's avatar Stefan Behnel

explicitly allow docstrings in .pxd files

parent 012ae82e
...@@ -1894,6 +1894,8 @@ def p_statement(s, ctx, first_statement = 0): ...@@ -1894,6 +1894,8 @@ def p_statement(s, ctx, first_statement = 0):
return p_pass_statement(s, with_newline=True) return p_pass_statement(s, with_newline=True)
else: else:
if ctx.level in ('c_class_pxd', 'property'): if ctx.level in ('c_class_pxd', 'property'):
if s.sy == 'BEGIN_STRING':
return p_atom(s) # allow docstrings and discardable strings
s.error("Executable statement not allowed here") s.error("Executable statement not allowed here")
if s.sy == 'if': if s.sy == 'if':
return p_if_statement(s) return p_if_statement(s)
......
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