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

master
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
1 changed files with 2 additions and 0 deletions

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):