From 3975c712f0c850156a3e3ec24452077e5f973309 Mon Sep 17 00:00:00 2001 From: sendmmsg <47253595+sendmmsg@users.noreply.github.com> Date: Fri, 16 Apr 2021 16:23:30 +0200 Subject: Bug in beautifier script, compound modifiers not correctly parsed (#12595) --- keyboards/ergodox_ez/util/keymap_beautifier/KeymapBeautifier.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'keyboards/ergodox_ez/util') diff --git a/keyboards/ergodox_ez/util/keymap_beautifier/KeymapBeautifier.py b/keyboards/ergodox_ez/util/keymap_beautifier/KeymapBeautifier.py index b96e4c96cd..6b6f391ce5 100755 --- a/keyboards/ergodox_ez/util/keymap_beautifier/KeymapBeautifier.py +++ b/keyboards/ergodox_ez/util/keymap_beautifier/KeymapBeautifier.py @@ -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): -- cgit v1.2.3