Rich is a Python library for rich text and beautiful formatting in the terminal.
[syntax] add a `stylize_ranges` method to the Syntax class