From fb4c4b7b81547a84d3ed4842cb7233b4c8e8622b Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Mon, 17 Oct 2016 07:28:26 +0200 Subject: [PATCH] *highlight: Optimization: set noksharrays at main entry point (*process) --- hsmw-highlight | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hsmw-highlight b/hsmw-highlight index 52e9b63..498cbd9 100644 --- a/hsmw-highlight +++ b/hsmw-highlight @@ -162,7 +162,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES integer multi_func_def=0 fi emulate -L zsh - setopt localoptions extendedglob bareglobqual nonomatch + setopt localoptions extendedglob bareglobqual nonomatch noksharrays ## Variable declarations and initializations local start_pos=0 end_pos highlight_glob=true arg style @@ -663,7 +663,6 @@ typeset -gA HSMW_HIGHLIGHT_STYLES # Highlight special chars inside double-quoted strings -hsmw-highlight-string() { - setopt localoptions noksharrays local -a match mbegin mend local mybuf="$arg" @@ -691,7 +690,6 @@ typeset -gA HSMW_HIGHLIGHT_STYLES # Highlight special chars inside dollar-quoted strings -hsmw-highlight-dollar-string() { - setopt localoptions noksharrays local -a match mbegin mend local MATCH; integer MBEGIN MEND local i j k style