PR #4279 is now part of the "devel" branch. This PR:
- improves how Leo colorizes rust character literals and lifetimes.
- uses a new pattern for testing colorizers.
A new syntax coloring pattern
Rust's colorizer now highlights invalid character literals (and lifetimes) by coloring the erroneous single quote in red. No other colorizer uses this convention. It will be valuable when I start writing Rust programs.
A new unit testing pattern
The rust_char matcher colorizes Rust character literals and lifetimes. The syntax is complicated, so it's essential to test the matcher thoroughly.
The test_rust_character_patterns unit test verifies that rust_char calls colorer.match_seq with the expected arguments. This is a mildly clever new testing pattern. More unit tests should do likewise.
Edward