diff --git a/hsmw-highlight b/hsmw-highlight index 0f59cbb..1208d09 100644 --- a/hsmw-highlight +++ b/hsmw-highlight @@ -566,10 +566,10 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=( ;; esac fi - if (( already_added == 0 )); then - # ADD - [[ "${HSMW_HIGHLIGHT_STYLES[$style]}" != "none" ]] && reply+=("$start_pos $end_pos ${HSMW_HIGHLIGHT_STYLES[$style]}") - fi + + # ADD + (( already_added == 0 )) && [[ "${HSMW_HIGHLIGHT_STYLES[$style]}" != "none" ]] && reply+=("$start_pos $end_pos ${HSMW_HIGHLIGHT_STYLES[$style]}") + if (( arg_type == 3 )); then if [[ $arg == ';' ]] && (( in_array_assignment )); then # literal newline inside an array assignment