diff --git a/CHANGELOG.md b/CHANGELOG.md index bdbe7c78..5de442ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.0.1] - Unreleased + +### Fixed + +- Fixed deprecation warnings re backslash https://github.com/willmcgugan/rich/issues/210 +- Fixed repr highlighting of scientific notation, e.g. 1e100 + ## [5.0.0] - 2020-08-02 ### Changed diff --git a/rich/highlighter.py b/rich/highlighter.py index b4c1adc0..e5556ade 100644 --- a/rich/highlighter.py +++ b/rich/highlighter.py @@ -75,7 +75,7 @@ class ReprHighlighter(RegexHighlighter): r"(?P\<)(?P\w*)(?P.*?)(?P\>)", r"(?P\w+?)=(?P\"?[\w_]+\"?)", r"(?PTrue)|(?PFalse)|(?PNone)", - r"(?P(?(?0x[0-9a-f]*)", r"(?P\B(\/[\w\.\-\_\+]+)*\/)(?P[\w\.\-\_\+]*)?", r"(?b?\'\'\'.*?(?