This commit is contained in:
roshal
2025-01-03 05:59:42 +03:00
parent 149900a8e2
commit 855fd0241c
3 changed files with 107 additions and 107 deletions

View File

@@ -53,7 +53,7 @@ def main(args: list[str]=sys.argv) -> None:
patch_color_list('tools/cmd/at/set_colors.go', nullable_colors, 'NULLABLE') patch_color_list('tools/cmd/at/set_colors.go', nullable_colors, 'NULLABLE')
patch_color_list('tools/themes/collection.go', all_colors, 'ALL') patch_color_list('tools/themes/collection.go', all_colors, 'ALL')
nc = '\n '.join(f'{x!r}' for x in nullable_colors) nc = '\n '.join(f'{x!r}' for x in nullable_colors)
write_output('kitty', definition, f'\nnullable_colors = frozenset({{\n {nc}\n}})') write_output('kitty', definition, f'\nnullable_colors = frozenset({{\n {nc}\n}})\n')
if __name__ == '__main__': if __name__ == '__main__':

View File

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