Add marks and regex addressing systems

- Hook up parser to buffer edits.
- Other minor fixes.
This commit is contained in:
2026-08-22 15:01:48 +01:00
parent 2a903f761a
commit bea8ff18c0
15 changed files with 357 additions and 73 deletions
+1 -8
View File
@@ -41,17 +41,11 @@ struct Address {
char m;
};
struct RegexLine { // /re/ or ?re?
struct Regex { // /re/ or ?re?
internal::Direction dir;
std::string re;
};
// BEd Extended types of addressing.
struct Regex { // &/re/ or &?re?
internal::Direction dir; // returns next/previous line containing the regex
std::string re; // (not only if it matches full line)
};
struct Diagnostic { // #n# for diagnostic number n. (From lsp.)
uint16_t n;
};
@@ -91,7 +85,6 @@ struct Address {
Last,
Number,
Mark,
RegexLine,
Regex,
Diagnostic,
DiagnosticNext,