mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
tests: Use 'NONE' to denote no highlighting
'none' is a valid highlighting type. Since by convention styles are all lowercase, 'NONE' shouldn't conflict with anything. Closes #289.
This commit is contained in:
parent
c346f6eb6f
commit
4da9889d15
2 changed files with 2 additions and 1 deletions
|
|
@ -101,6 +101,7 @@ run_test_internal() {
|
|||
for ((i=1; i<=${#expected_region_highlight}; i++)); do
|
||||
local todo=
|
||||
highlight_zone=${(z)expected_region_highlight[$i]}
|
||||
[[ $highlight_zone[3] == NONE ]] && highlight_zone[3]=
|
||||
[[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]"
|
||||
for j in {$highlight_zone[1]..$highlight_zone[2]}; do
|
||||
if [[ "$observed_result[$j]" != "$ZSH_HIGHLIGHT_STYLES[$highlight_zone[3]]" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue