Commit 5bf52cda authored by Ian Bell's avatar Ian Bell

Update Parsing.py

Added patch from Nikita to properly parse extension type attribute docstrings in PXD files as well as source files
parent 5fbe131d
...@@ -2842,7 +2842,7 @@ def p_c_func_or_var_declaration(s, pos, ctx): ...@@ -2842,7 +2842,7 @@ def p_c_func_or_var_declaration(s, pos, ctx):
declarators.append(declarator) declarators.append(declarator)
doc_line = s.start_line + 1 doc_line = s.start_line + 1
s.expect_newline("Syntax error in C variable declaration") 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) doc = p_doc_string(s)
else: else:
doc = None 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