parent
03692831ad
commit
1f1e629290
@ -52,6 +52,7 @@ _zsh_highlight_regexp_highlighter_loop()
|
|||||||
local buf="$1" pat="$2"
|
local buf="$1" pat="$2"
|
||||||
integer OFFSET=0
|
integer OFFSET=0
|
||||||
local MATCH; integer MBEGIN MEND
|
local MATCH; integer MBEGIN MEND
|
||||||
|
local -a match mbegin mend
|
||||||
while true; do
|
while true; do
|
||||||
[[ "$buf" =~ "$pat" ]] || return;
|
[[ "$buf" =~ "$pat" ]] || return;
|
||||||
region_highlight+=("$((MBEGIN - 1 + OFFSET)) $((MEND + OFFSET)) $ZSH_HIGHLIGHT_REGEXP[$pat]")
|
region_highlight+=("$((MBEGIN - 1 + OFFSET)) $((MEND + OFFSET)) $ZSH_HIGHLIGHT_REGEXP[$pat]")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user