diff --git a/TODO.md b/TODO.md index 555e479..0d7836b 100644 --- a/TODO.md +++ b/TODO.md @@ -123,7 +123,6 @@ - Cmd-Shift-A in iTerm2 selects prompt - Print exception group tracebacks from exceptiongroup better - Make `from __future__ import annotations` work -- Highlight exception type in tracebacks - Copilot (or LLM) tab completion ## 2.0 TODOs diff --git a/mypython/theme.py b/mypython/theme.py index 225454b..bcb7a1e 100644 --- a/mypython/theme.py +++ b/mypython/theme.py @@ -3,7 +3,7 @@ Translated from http://raebear.net/comp/emacscolors.html """ -from pygments.token import Keyword, Name, Comment, String, Operator +from pygments.token import Keyword, Name, Comment, String, Operator, Generic from pygments.style import Style from pygments.lexers import Python3Lexer @@ -67,6 +67,8 @@ class OneAMStyle(Style): # Doesn't work Name.Variable: "#a0522d", # sienna + # Used for the exception in tracebacks + Generic.Error: "#ff0000", # red } # Uncomment this to register the style with pygments