(self, style_map: Dict[TokenType, Style])
| 184 | """Syntax theme to use standard colors.""" |
| 185 | |
| 186 | def __init__(self, style_map: Dict[TokenType, Style]) -> None: |
| 187 | self.style_map = style_map |
| 188 | self._missing_style = Style.null() |
| 189 | self._background_style = Style.null() |
| 190 | self._style_cache: Dict[TokenType, Style] = {} |
| 191 | |
| 192 | def get_style_for_token(self, token_type: TokenType) -> Style: |
| 193 | """Look up style in the style map.""" |