mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Add notice to not edit generated code
This commit is contained in:
@@ -116,7 +116,7 @@ last_code = start_code + len(functional_key_names) - 1
|
||||
|
||||
|
||||
def patch_file(path: str, what: str, text: str, start_marker: str = '/* ', end_marker: str = ' */') -> None:
|
||||
start_q = f'{start_marker}start {what}{end_marker}'
|
||||
start_q = f'{start_marker}start {what} (auto generated by gen-key-constants.py do not edit){end_marker}'
|
||||
end_q = f'{start_marker}end {what}{end_marker}'
|
||||
|
||||
with open(path, 'r+') as f:
|
||||
|
||||
2
glfw/glfw3.h
vendored
2
glfw/glfw3.h
vendored
@@ -342,7 +342,7 @@ extern "C" {
|
||||
* @{
|
||||
*/
|
||||
|
||||
/* start functional key names */
|
||||
/* start functional key names (auto generated by gen-key-constants.py do not edit) */
|
||||
typedef enum {
|
||||
GLFW_FKEY_FIRST = 0xe000,
|
||||
GLFW_FKEY_ESCAPE = 0xe000,
|
||||
|
||||
Reference in New Issue
Block a user