mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
tests: Directly diff expected_region_highlight against region_highlight
This commit is contained in:
parent
622358f32d
commit
a9be0975c8
78 changed files with 219 additions and 121 deletions
|
|
@ -13,12 +13,13 @@ The value of that parameter is a list of strings of the form `"$i $j $style"`.
|
|||
or `"$i $j $style $todo"`.
|
||||
Each string specifies the highlighting that `$BUFFER[$i,$j]` should have;
|
||||
that is, `$i` and `$j` specify a range, 1-indexed, inclusive of both endpoints.
|
||||
`$style` is either a key of `$ZSH_HIGHLIGHT_STYLES` or `NONE` to specify no
|
||||
highlighting should be observed.
|
||||
`$style` is a key of `$ZSH_HIGHLIGHT_STYLES`.
|
||||
If `$todo` exists, the test point is marked as TODO (the failure of that test
|
||||
point will not fail the test), and `$todo` is used as the explanation.
|
||||
If a test sets `$skip_test` to a non-empty string, the test will be skipped
|
||||
with the provided string as the reason.
|
||||
If a test sets `unsorted=1` the order of highlights in `$expected_region_highlight`
|
||||
need not match the order in `$region_highlight`.
|
||||
|
||||
**Note**: `$region_highlight` uses the same `"$i $j $style"` syntax but
|
||||
interprets the indexes differently.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue