Commit 9cf564fd authored by Robert Bradshaw's avatar Robert Bradshaw

Add variable declaration assignment to the grammar.

parent e1f96aae
......@@ -174,7 +174,7 @@ ctypedef_stmt: 'ctypedef' (cvar_decl | struct | enum)
# Requires a type
cvar_decl: [visibility] type cname (NEWLINE | cfunc)
# Allows an assignment
cvar_def: maybe_typed_name (NEWLINE | cfunc)
cvar_def: maybe_typed_name (['=' test] (',' NAME ['=' test])* NEWLINE | cfunc)
visibility: 'public' | 'api' | 'readonly' | 'extern'
cfunc: [teplate_params] parameters [gil_spec] [exception_value] (':' suite | NEWLINE)
......
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