PR #4279 <https://github.com/leo-editor/leo-editor/pull/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

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/6e72ebda-38dd-476d-ae52-d6a99e24daa6n%40googlegroups.com.

Reply via email to