*highlight: Correctly handle ';;' at command place

The slow down is effect of INTERACTIVE_COMMENTS

parse.zsh -oo, after changes:

Running time: 1.5990070000
num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  350        1591,56     4,55   99,99%   1201,14     3,43   75,47%  -hsmw-highlight-process
 2) 2800         292,64     0,10   18,39%    292,64     0,10   18,39%  -hsmw-highlight-string
 3) 2450          62,28     0,03    3,91%     62,28     0,03    3,91%  -hsmw-highlight-check-path
 4) 1400          25,69     0,02    1,61%     25,69     0,02    1,61%  -hsmw-highlight-main-type
 5)  350           9,80     0,03    0,62%      9,80     0,03    0,62%  -hsmw-highlight-stack-pop
 6)    1           0,07     0,07    0,00%      0,07     0,07    0,00%  -hsmw-highlight-fill-option-variables
 7)    1           0,01     0,01    0,00%      0,01     0,01    0,00%  -hsmw-highlight-init
This commit is contained in:
Sebastian Gniazdowski 2016-10-30 11:28:30 +01:00
parent 62c5fe444e
commit 9b73595c01

View file

@ -495,7 +495,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
[[ ${buf[pos]} == "/" ]] && reply+=("$(( pos - 1 )) $pos ${HSMW_HIGHLIGHT_STYLES[path_pathseparator]}")
done
}
}
} || (( this_word & 14 )) && style=default
fi
;;
*)