Skip to content
Snippets Groups Projects
Commit 326f1a19 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix declarator parsing: allow numbers in var names again.

parent 8fb851f0
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ def parse_c_arg(c_arg): ...@@ -184,7 +184,7 @@ def parse_c_arg(c_arg):
# process and remove declarator # process and remove declarator
import re import re
decl_re = re.compile(r"(\**)\s*([_a-zA-Z]+)(\s*\[[ 0-9]*\])*\s*$") decl_re = re.compile(r"(\**)\s*([_a-zA-Z0-9]+)(\s*\[[ 0-9]*\])*\s*$")
decl_match = decl_re.search(c_arg) decl_match = decl_re.search(c_arg)
if decl_match is None: if decl_match is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment