Format code

This commit is contained in:
Julien Nicoulaud 2010-12-30 17:05:00 +01:00
parent 2cf6e4844b
commit 00427081d1

View File

@ -45,7 +45,7 @@ _hl_string() {
(( k = j + 1 ))
c="$arg[$i]"
[[ "$c" = '$' ]] && region_highlight+=("$j $k $ZLE_DOLLAR_DOUBLE_QUOTED")
if [[ "$c" = '\' ]] ; then
if [[ "$c" = "\\" ]] ; then
(( k = k + 1 ))
region_highlight+=("$j $k $ZLE_BACK_DOUBLE_QUOTED")
fi
@ -84,16 +84,14 @@ colorize-zle-buffer() {
'--'*) style=$ZLE_DOUBLE_HYPHEN_CLI_OPTION;;
'-'*) style=$ZLE_HYPHEN_CLI_OPTION;;
"'"*"'") style=$ZLE_SINGLE_QUOTED;;
'"'*'"')
style=$ZLE_DOUBLE_QUOTED
'"'*'"') style=$ZLE_DOUBLE_QUOTED
region_highlight+=("$start_pos $end_pos $style")
_hl_string
substr_color=1
;;
'`'*'`') style=$ZLE_BACK_QUOTED;;
*"*"*) style=$ZLE_GLOBING;;
*)
style=$ZLE_DEFAULT
*) style=$ZLE_DEFAULT
_check_path && style=$ZLE_PATH_STYLE
;;
esac