Bug in beautifier script, compound modifiers not correctly parsed (#12595)

This commit is contained in:
sendmmsg 2021-04-16 16:23:30 +02:00 committed by GitHub
parent a8c013a145
commit 3975c712f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,6 +361,8 @@ class KeymapBeautifier:
args.append(arg.value)
elif type(arg) is pycparser.c_ast.ID:
args.append(arg.name)
elif type(arg) is pycparser.c_ast.FuncCall:
args.append(self.function_expr(arg))
return "{}({})".format(name, ",".join(args))
def key_expr(self, raw):