mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
main-highlighter: Probe dirs after blacklist
Move tests on the highlight path until after the blacklist is checked so that blacklisted paths are not tested. This should prevent hangs on dead remote filesystems provided the path is blacklisted in X_ZSH_HIGHLIGHT_DIRS_BLACKLIST. Updated tests to 'default' highlight as the blacklist is now checked before the path is tested. Bug: https://github.com/zsh-users/zsh-syntax-highlighting/issues/528
This commit is contained in:
parent
db6cac391b
commit
47d6dac133
2 changed files with 5 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ X_ZSH_HIGHLIGHT_DIRS_BLACKLIST=($PWD/foo)
|
|||
|
||||
expected_region_highlight=(
|
||||
'1 1 builtin' # :
|
||||
'3 9 path' # foo/bar
|
||||
"11 $(( 14 + $#PWD )) path" # $PWD/foo
|
||||
'3 9 default' # foo/bar
|
||||
"11 $(( 14 + $#PWD )) default" # $PWD/foo
|
||||
"$(( 16 + $#PWD )) $(( 20 + $#PWD )) default" # foo/b
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue