mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
minor: tests: Add comment for NONE in expected_region_highlight
This commit is contained in:
parent
364f206a54
commit
d37c55c788
1 changed files with 1 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ run_test_internal() {
|
||||||
integer start=$highlight_zone[1] end=$highlight_zone[2]
|
integer start=$highlight_zone[1] end=$highlight_zone[2]
|
||||||
# Escape # as ♯ since the former is illegal in the 'description' part of TAP output
|
# Escape # as ♯ since the former is illegal in the 'description' part of TAP output
|
||||||
local desc="[$start,$end] «${BUFFER[$start,$end]//'#'/♯}»"
|
local desc="[$start,$end] «${BUFFER[$start,$end]//'#'/♯}»"
|
||||||
|
# Match the emptiness of observed_result if no highlighting is expected
|
||||||
[[ $highlight_zone[3] == NONE ]] && highlight_zone[3]=
|
[[ $highlight_zone[3] == NONE ]] && highlight_zone[3]=
|
||||||
[[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]"
|
[[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]"
|
||||||
for j in {$start..$end}; do
|
for j in {$start..$end}; do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue