forked from extern/nushell
6a7c00eaef
This commit should finish the `coloring_in_tokens` feature, which moves the shape accumulator into the token stream. This allows rollbacks of the token stream to also roll back any shapes that were added. This commit also adds a much nicer syntax highlighter trace, which shows all of the paths the highlighter took to arrive at a particular coloring output. This change is fairly substantial, but really improves the understandability of the flow. I intend to update the normal parser with a similar tracing view. In general, this change also fleshes out the concept of "atomic" token stream operations. A good next step would be to try to make the parser more error-correcting, using the coloring infrastructure. A follow-up step would involve merging the parser and highlighter shapes themselves. |
||
---|---|---|
.. | ||
fixtures | ||
helpers | ||
command_cd_tests.rs | ||
command_config_test.rs | ||
command_cp_tests.rs | ||
command_enter_test.rs | ||
command_ls_tests.rs | ||
command_mkdir_tests.rs | ||
command_mv_tests.rs | ||
command_open_tests.rs | ||
command_rm_tests.rs | ||
commands_test.rs | ||
external_tests.rs | ||
filter_inc_tests.rs | ||
filter_str_tests.rs | ||
filters_test.rs | ||
tests.rs |