File tree 3 files changed +1
-7
lines changed
3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ This highlighter defines the following styles:
34
34
* ` hashed-command ` - hashed commands
35
35
* ` path ` - paths
36
36
* ` path_prefix ` - path prefixes
37
- * ` path_approx ` - approximated paths
38
37
* ` globbing ` - globbing expressions (` *.txt ` )
39
38
* ` history-expansion ` - history expansion expressions (` !foo ` and ` ^foo^bar ` )
40
39
* ` single-hyphen-option ` - single hyphen options (-o)
Original file line number Diff line number Diff line change 42
42
: ${ZSH_HIGHLIGHT_STYLES[hashed-command]:= fg=green}
43
43
: ${ZSH_HIGHLIGHT_STYLES[path]:= underline}
44
44
: ${ZSH_HIGHLIGHT_STYLES[path_prefix]:= underline}
45
- : ${ZSH_HIGHLIGHT_STYLES[path_approx]:= fg=yellow,underline}
46
45
: ${ZSH_HIGHLIGHT_STYLES[globbing]:= fg=blue}
47
46
: ${ZSH_HIGHLIGHT_STYLES[history-expansion]:= fg=blue}
48
47
: ${ZSH_HIGHLIGHT_STYLES[single-hyphen-option]:= none}
@@ -285,9 +284,6 @@ _zsh_highlight_main_highlighter_check_path()
285
284
local -a tmp
286
285
tmp=( ${expanded_path} * (N) )
287
286
(( $# tmp > 0 )) && style_override=path_prefix && return 0
288
- # or maybe an approximate path?
289
- tmp=( (# a1)${expanded_path}*(N) )
290
- (( $# tmp > 0 )) && style_override=path_approx && return 0
291
287
fi
292
288
293
289
# It's not a path.
Original file line number Diff line number Diff line change 27
27
# vim: ft=zsh sw=2 ts=2 et
28
28
# -------------------------------------------------------------------------------------------------
29
29
30
- # without the trailing space, it's highlighted as path_approx (issue #187, issue #204)
31
- BUFFER=' echo; ; '
30
+ BUFFER=' echo; ;'
32
31
33
32
expected_region_highlight=(
34
33
" 5 5 $ZSH_HIGHLIGHT_STYLES [commandseparator]" # ;
You can’t perform that action at this time.
0 commit comments