Commit 7f8d3646 authored by gsamain's avatar gsamain

Initial cypclass support in parsing

parent 9e0bcda8
......@@ -2257,8 +2257,8 @@ def p_statement(s, ctx, first_statement = 0):
cdef_flag = 1
nogil_flag = 1
s.next()
if s.sy != "class":
s.error('ccdef statement only allowed for extension type')
if s.systring not in ("class", "cppclass"):
s.error('ccdef statement only allowed for extension type or cppclass')
elif s.sy == 'cpdef':
s.level = ctx.level
cdef_flag = 1
......@@ -3813,7 +3813,7 @@ def p_cpp_class_definition(s, pos, ctx):
visibility = ctx.visibility,
in_pxd = ctx.level == 'module_pxd',
attributes = attributes,
templates = templates)
templates = templates, cypclass=nogil)
def p_cpp_class_attribute(s, ctx):
decorators = 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