zsh-syntax-highlighting/highlighters
Daniel Shahaf 2d0f51b54e WIP: tests: Add tests for issue #670.
They fail as follows:

    ZSH_PATCHLEVEL=debian/5.7.1-1
    Running test brackets
    Running test main
    # parameter-value-contains-command-position1
    1..2
    not ok 1 - [1,7] «$foobar» - expected (1 7 "assign"), observed (1 7 "unknown-token").
    ok 2 - cardinality check
    # parameter-value-contains-command-position2
    1..2
    not ok 1 - [1,2] «$y» - expected (1 2 "assign"), observed (1 2 "unknown-token").
    ok 2 - cardinality check

(The "unknown-token" was printed by the `_zsh_highlight_main_add_region_highlight`
call on line 967, after the loop.)

Before the parent commit, they behaved as follows (note the "BUG:" and
"Bail out!" on the first one — that's issue #670.2):

    ZSH_PATCHLEVEL=debian/5.7.1-1
    # parameter-value-contains-command-position1
    1..2
    ok 1 - [1,7] «$foobar» - # TODO "issue #670"
    not ok 2 - have 1 expectations and 6 region_highlight entries: «expected_region_highlight=( '1 7 assign "issue ♯670"' )» «region_highlight=( '0 7 assign' '2 7 default' '2 7 command-substitution-unquoted'
    zsh-syntax-highlighting: BUG: _zsh_highlight_highlighter_main_paint: start(2) >= end(2)
    Bail out! On './highlighters/main/test-data/parameter-value-contains-command-position2.zsh': output on stderr
    # parameter-value-contains-command-position2
    1..2
    ok 1 - [1,2] «$y» - # TODO "issue #670"
    ok 2 - cardinality check
2020-02-22 14:39:38 +00:00
..
brackets tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
cursor *: Change highlighters' namespace. 2016-08-16 17:53:01 +00:00
line highlighters: Rename entry points. 2016-08-16 17:51:43 +00:00
main WIP: tests: Add tests for issue #670. 2020-02-22 14:39:38 +00:00
pattern highlighters: Rename entry points. 2016-08-16 17:51:43 +00:00
regexp regexp: Add test for subexpression match 2018-02-11 09:58:00 -06:00
root highlighters: Rename entry points. 2016-08-16 17:51:43 +00:00
README.md docs: Followup to the recent docs branch: clean up some internal cross-references. 2015-11-27 04:07:02 +00:00

zsh-syntax-highlighting / highlighters

Navigate into the individual highlighters' documentation to see what styles ($ZSH_HIGHLIGHT_STYLES keys) each highlighter defines.

Refer to the documentation on highlighters for further information.