summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsendmmsg <47253595+sendmmsg@users.noreply.github.com>2021-04-16 16:23:30 +0200
committerGitHub <noreply@github.com>2021-04-16 16:23:30 +0200
commit3975c712f0c850156a3e3ec24452077e5f973309 (patch)
treecd00f5f2e21172f236b66f1c19f40da718274388
parenta8c013a145bf52a28b88154c9d1445615f7e984b (diff)
downloadqmk_firmware-3975c712f0c850156a3e3ec24452077e5f973309.tar.gz
qmk_firmware-3975c712f0c850156a3e3ec24452077e5f973309.zip
Bug in beautifier script, compound modifiers not correctly parsed (#12595)
-rwxr-xr-xkeyboards/ergodox_ez/util/keymap_beautifier/KeymapBeautifier.py2
1 files changed, 2 insertions, 0 deletions
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):