mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 12:34:44 +02:00
...
This commit is contained in:
@@ -17,7 +17,11 @@ from functools import lru_cache, partial
|
||||
from typing import Any, Callable, Dict, Iterable, Iterator, List, Tuple
|
||||
|
||||
from docutils import nodes
|
||||
from docutils.parsers.rst.roles import normalize_options
|
||||
|
||||
try:
|
||||
from docutils.parsers.rst.roles import normalize_options
|
||||
except ImportError:
|
||||
from docutils.parsers.rst.roles import set_classes as normalize_options # type: ignore
|
||||
from pygments.lexer import RegexLexer
|
||||
from pygments.lexer import bygroups as untyped_bygroups
|
||||
from pygments.token import Comment, Error, Keyword, Literal, Name, Number, String, Whitespace
|
||||
|
||||
Reference in New Issue
Block a user