mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-02-13 10:05:31 +08:00
clean up the merge
This commit is contained in:
parent
84527c2257
commit
af03935a59
@ -41,7 +41,6 @@
|
|||||||
: ${ZSH_HIGHLIGHT_STYLES[commandseparator]:=none}
|
: ${ZSH_HIGHLIGHT_STYLES[commandseparator]:=none}
|
||||||
: ${ZSH_HIGHLIGHT_STYLES[hashed-command]:=fg=green}
|
: ${ZSH_HIGHLIGHT_STYLES[hashed-command]:=fg=green}
|
||||||
: ${ZSH_HIGHLIGHT_STYLES[path]:=underline}
|
: ${ZSH_HIGHLIGHT_STYLES[path]:=underline}
|
||||||
: ${ZSH_HIGHLIGHT_STYLES[path_separator]:=fg=cyan}
|
|
||||||
: ${ZSH_HIGHLIGHT_STYLES[path_prefix]:=underline}
|
: ${ZSH_HIGHLIGHT_STYLES[path_prefix]:=underline}
|
||||||
: ${ZSH_HIGHLIGHT_STYLES[path_approx]:=fg=yellow,underline}
|
: ${ZSH_HIGHLIGHT_STYLES[path_approx]:=fg=yellow,underline}
|
||||||
: ${ZSH_HIGHLIGHT_STYLES[globbing]:=fg=blue}
|
: ${ZSH_HIGHLIGHT_STYLES[globbing]:=fg=blue}
|
||||||
@ -184,19 +183,6 @@ _zsh_highlight_main_highlighter_check_assign()
|
|||||||
[[ $arg == [[:alpha:]_][[:alnum:]_]#(|\[*\])=* ]]
|
[[ $arg == [[:alpha:]_][[:alnum:]_]#(|\[*\])=* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
_zsh_highlight_main_highlighter_highlight_path_separators()
|
|
||||||
{
|
|
||||||
local pos style
|
|
||||||
style=$ZSH_HIGHLIGHT_STYLES[path_separator]
|
|
||||||
for (( pos = 0; $pos < ${#BUFFER}; pos++ )) ; do
|
|
||||||
local char="$BUFFER[pos+1]"
|
|
||||||
|
|
||||||
if [[ "$char" == "/" ]]; then
|
|
||||||
region_highlight+=("$pos $((pos + 1)) $style")
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
_zsh_highlight_main_highlighter_highlight_path_separators()
|
_zsh_highlight_main_highlighter_highlight_path_separators()
|
||||||
{
|
{
|
||||||
local pos style
|
local pos style
|
||||||
|
Loading…
Reference in New Issue
Block a user