Implement syntax highlighting

- Create a generic incremental syntax highlighting system.
- Implement a ruby syntax highlighter for it.
This commit is contained in:
2026-08-20 02:23:11 +01:00
parent 48fb8e3501
commit 3a41af01f9
18 changed files with 2631 additions and 28 deletions
+2
View File
@@ -5,6 +5,7 @@
#include "internal/commands/commands.h"
#include "internal/commands/suffixes.h"
#include "internal/marks/marks.h"
#include "internal/theme/theme.h"
#include "pch.h"
namespace bed {
@@ -13,6 +14,7 @@ struct BEd {
internal::commands::Command no_op;
internal::commands::Command eof_op;
std::array<std::optional<internal::commands::Suffix>, 26> suffixes;
internal::theme::Theme theme;
bool help_mode = false;
std::string last_help = "";