Handle unknown lexer, remove dead _THEMES list, tighten JSON detection - Catch unknown Pygments lexer names and fall back to plain text - Remove unused _THEMES list from cli.py - Only auto-detect JSON when content starts with { or [ to avoid false positives on trivial values like strings or numbers
This commit is contained in:
@@ -20,22 +20,6 @@ app = typer.Typer(
|
||||
rich_markup_mode="rich",
|
||||
)
|
||||
|
||||
_THEMES = [
|
||||
"monokai",
|
||||
"github-dark",
|
||||
"one-dark",
|
||||
"vim",
|
||||
"vs",
|
||||
"nord",
|
||||
"dracula",
|
||||
"solarized-dark",
|
||||
"solarized-light",
|
||||
"default",
|
||||
"friendly",
|
||||
"native",
|
||||
"emacs",
|
||||
]
|
||||
|
||||
|
||||
def version_callback(value: bool) -> None:
|
||||
if value:
|
||||
|
||||
Reference in New Issue
Block a user