diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index ce48ce7..f5fd41e 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -389,6 +389,8 @@ _zsh_highlight_main_highlighter_check_path() _zsh_highlight_main_highlighter_highlight_string() { setopt localoptions noksharrays + local -a match mbegin mend + local MATCH; integer MBEGIN MEND local i j k style # Starting quote is at 1, so start parsing at offset 2 in the string. for (( i = 2 ; i < end_pos - start_pos ; i += 1 )) ; do @@ -423,6 +425,8 @@ _zsh_highlight_main_highlighter_highlight_string() _zsh_highlight_main_highlighter_highlight_dollar_string() { setopt localoptions noksharrays + local -a match mbegin mend + local MATCH; integer MBEGIN MEND local i j k style local AA integer c diff --git a/highlighters/pattern/pattern-highlighter.zsh b/highlighters/pattern/pattern-highlighter.zsh index c77d53b..4e2eabd 100644 --- a/highlighters/pattern/pattern-highlighter.zsh +++ b/highlighters/pattern/pattern-highlighter.zsh @@ -52,6 +52,7 @@ _zsh_highlight_pattern_highlighter_loop() # This does *not* do its job syntactically, sorry. local buf="$1" pat="$2" local -a match mbegin mend + local MATCH; integer MBEGIN MEND if [[ "$buf" == (#b)(*)(${~pat})* ]]; then region_highlight+=("$((mbegin[2] - 1)) $mend[2] $ZSH_HIGHLIGHT_PATTERNS[$pat]") "$0" "$match[1]" "$pat"; return $?