From 4b266c9616f4eb359be71c44b9b2fa3373265bb0 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 24 May 2025 01:31:22 +0300 Subject: new string building construct ^P disables all further string building magic * Now, `I^P` can replace `EI`. EI is therefore now free to be repurposed as the new "mung file" command for improved TECO-11 compatibility. * On the downside when inserting large blocks of TECO code, you will have to write something like `@I{^P !...! }` * The construct is also useful when searching for carets as in `S^P^Q^`. --- src/parser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 5477150..41b960b 100644 --- a/src/parser.h +++ b/src/parser.h @@ -332,7 +332,8 @@ gboolean teco_machine_input(teco_machine_t *ctx, gunichar chr, GError **error); typedef enum { TECO_STRINGBUILDING_MODE_NORMAL = 0, TECO_STRINGBUILDING_MODE_UPPER, - TECO_STRINGBUILDING_MODE_LOWER + TECO_STRINGBUILDING_MODE_LOWER, + TECO_STRINGBUILDING_MODE_DISABLED } teco_stringbuilding_mode_t; /** -- cgit v1.2.3