- Switch to using PCRE for ts predicate matching
- Fix/use shebang hl for ruby and bash grammars
This commit is contained in:
2025-12-10 19:49:09 +00:00
parent 774a21241e
commit 303f008b6f
6 changed files with 44 additions and 56 deletions

View File

@@ -12,8 +12,11 @@ Editor *new_editor(const char *filename, Coord position, Coord size) {
return nullptr;
uint32_t len = 0;
char *str = load_file(filename, &len);
if (!str)
if (!str) {
free_editor(editor);
log("me?");
return nullptr;
}
editor->filename = filename;
editor->position = position;
editor->size = size;