Have gen-config output action names as comments

This commit is contained in:
Kovid Goyal
2021-06-05 12:20:43 +05:30
parent 0bade29c25
commit 1c8b7955eb
3 changed files with 119 additions and 119 deletions

View File

@@ -272,7 +272,7 @@ def generate_class(defn: Definition, loc: str) -> Tuple[str, str]:
only.setdefault(sc.only, []).append((text, func))
else:
for val in func(text):
a(f' {val!r},')
a(f' {val!r}, # {sc.name}')
a(']')
if only:
imports.add(('kitty.constants', 'is_macos'))