From b54cd36e45648b51f065ce0fbaeed53ddb6ce988 Mon Sep 17 00:00:00 2001 From: Jiri Malak Date: Wed, 2 Oct 2024 22:11:48 +0200 Subject: [PATCH] vi: improve handling search of pair #if/#endif --- bld/vi/dat/debug.cfg | 2 +- bld/vi/dat/ed.cfg | 2 +- bld/vi/dat/weditor.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bld/vi/dat/debug.cfg b/bld/vi/dat/debug.cfg index 61787ae1b7..05fd8ca149 100644 --- a/bld/vi/dat/debug.cfg +++ b/bld/vi/dat/debug.cfg @@ -190,7 +190,7 @@ set inactivewindowcolor %(white) # extra things to match with '%' # match /\/\*/\*\// -match /# *if/# *endif/ +match /^ *# *if/^ *# *endif/ # # key mappings diff --git a/bld/vi/dat/ed.cfg b/bld/vi/dat/ed.cfg index bd24af7291..001b052fb3 100644 --- a/bld/vi/dat/ed.cfg +++ b/bld/vi/dat/ed.cfg @@ -155,7 +155,7 @@ set nocmode # match /\/\*/\*\// match /\[/\]/ -match /# *if/# *endif/ +match /^ *# *if/^ *# *endif/ match /! *if/! *endif/ # diff --git a/bld/vi/dat/weditor.ini b/bld/vi/dat/weditor.ini index 13e694ea47..302b9d8f92 100644 --- a/bld/vi/dat/weditor.ini +++ b/bld/vi/dat/weditor.ini @@ -127,7 +127,7 @@ set nozapcolorsatexit # Match pairs - in addition to "()" and "{}" match /\/\*/\*\// match /\[/\]/ -match /# *if/# *endif/ +match /^ *# *if/^ *# *endif/ match /! *if/! *endif/ setcolor 0 0 0 0 setcolor 1 0 0 128