Skip to content

Commit

Permalink
vi: improve handling search of pair #if/#endif
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Oct 2, 2024
1 parent deb22e4 commit b54cd36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bld/vi/dat/debug.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ set inactivewindowcolor %(white)
# extra things to match with '%'
#
match /\/\*/\*\//
match /# *if/# *endif/
match /^ *# *if/^ *# *endif/

#
# key mappings
Expand Down
2 changes: 1 addition & 1 deletion bld/vi/dat/ed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ set nocmode
#
match /\/\*/\*\//
match /\[/\]/
match /# *if/# *endif/
match /^ *# *if/^ *# *endif/
match /! *if/! *endif/

#
Expand Down
2 changes: 1 addition & 1 deletion bld/vi/dat/weditor.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b54cd36

Please sign in to comment.