Commit 82c23c7a authored by scoder's avatar scoder

Merge pull request #274 from ibell/patch-1

Allow docstrings on cdef classes in .pxd files
parents d360c927 5bf52cda
......@@ -2842,7 +2842,7 @@ def p_c_func_or_var_declaration(s, pos, ctx):
declarators.append(declarator)
doc_line = s.start_line + 1
s.expect_newline("Syntax error in C variable declaration")
if ctx.level == 'c_class' and s.start_line == doc_line:
if ctx.level in ('c_class', 'c_class_pxd') and s.start_line == doc_line
doc = p_doc_string(s)
else:
doc = None
......
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