Skip to content

Commit

Permalink
add searching match of !if and !endif for make files
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Feb 3, 2024
1 parent 237bd3b commit 680493a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion bld/vi/dat/ed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,12 @@ endif
set nocmode

#
# Match pairs - in addition to (,) and {,}
# Match pairs - in addition to "()" and "{}"
#
match /\/\*/\*\//
match /\[/\]/
match /# *if/# *endif/
match /! *if/! *endif/

#
# Command Mode Mappings
Expand Down
4 changes: 3 additions & 1 deletion bld/vi/dat/weditor.ini
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ set wordwrap
set wrapbackspace
set writecrlf
set nozapcolorsatexit
# Match pairs - in addition to "()" and "{}"
match /\/\*/\*\//
match /# *if/# *endif/
match /\[/\]/
match /# *if/# *endif/
match /! *if/! *endif/
setcolor 0 0 0 0
setcolor 1 0 0 128
setcolor 2 0 128 0
Expand Down
2 changes: 1 addition & 1 deletion bld/vi/h/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ typedef enum {
#define SCROLL_HLINE 10
#define SCROLL_VLINE 2
#define MAX_MARKS 26
#define MAX_SEARCH_STRINGS 9
#define MAX_SEARCH_STRINGS 10
#define MAX_SCRIPT_LENGTH 2048
#define MAX_MOUSE_SPEED 250
#define MAX_OVERRIDE_KEY_BUFF 512
Expand Down

0 comments on commit 680493a

Please sign in to comment.