Skip to content

Commit

Permalink
Merge pull request #1988 from davised/master
Browse files Browse the repository at this point in the history
Fix lexer guessing for rich.syntax cli.
  • Loading branch information
willmcgugan committed Feb 22, 2022
2 parents 8c3e6be + 0ef6f58 commit f2845e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- In Jupyter mode make the link target be set to "_blank"
- Fix some issues with markup handling around "[" characters https://github.com/Textualize/rich/pull/1950
- Fix syntax lexer guessing.

### Added

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Expand Up @@ -6,6 +6,7 @@ The following people have contributed to the development of Rich:

- [Gregory Beauregard](https://github.com/GBeauregard/pyffstream)
- [Darren Burns](https://github.com/darrenburns)
- [Ed Davis](https://github.com/davised)
- [Pete Davison](https://github.com/pd93)
- [James Estevez](https://github.com/jstvz)
- [Oleksis Fraga](https://github.com/oleksis)
Expand Down
2 changes: 1 addition & 1 deletion rich/syntax.py
Expand Up @@ -735,7 +735,7 @@ def __rich_console__(
parser.add_argument(
"-x",
"--lexer",
default="default",
default=None,
dest="lexer_name",
help="Lexer name",
)
Expand Down

0 comments on commit f2845e1

Please sign in to comment.