Make adding new underline styles easier in the future

This commit is contained in:
Kovid Goyal
2022-02-04 14:05:19 +05:30
parent 37d8483728
commit 6b47f6f769
7 changed files with 30 additions and 18 deletions

View File

@@ -302,6 +302,8 @@ PyInit_fast_data_types(void) {
s(STRIKETHROUGH, strike); s(DIM, dim); s(DECORATION, decoration);
#undef s
PyModule_AddIntConstant(m, "MARK_MASK", MARK_MASK);
PyModule_AddIntConstant(m, "DECORATION_MASK", DECORATION_MASK);
PyModule_AddIntConstant(m, "NUM_UNDERLINE_STYLES", NUM_UNDERLINE_STYLES);
PyModule_AddStringMacro(m, ERROR_PREFIX);
#ifdef KITTY_VCS_REV
PyModule_AddStringMacro(m, KITTY_VCS_REV);