Format code
This commit is contained in:
parent
2cf6e4844b
commit
00427081d1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user