Make parser optional.

This commit is contained in:
2026-08-20 13:12:48 +01:00
parent 3a41af01f9
commit 1489b08d57
6 changed files with 73 additions and 69 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ namespace bed::internal::buffer {
struct Buffer {
vase::Vase vase;
marks::MarksEngine marks;
syntax::Language lang;
syntax::Parser parser;
std::string language;
std::optional<syntax::Parser> parser;
uint64_t line = 0;
bool modified;
std::filesystem::path save_path = "";