3
T'ícG ã @ st d dl Z d dlZd dlmZ d dlmZmZmZmZm Z d dl
mZ d dlm
Z
mZ d dlmZ d dlmZ d dlmZ d d lmZ d d
lmZ d dlmZ d dlmZmZ d d
lmZ d dl m!Z! erÔd dl"m#Z# ej$e%Z&G dd deZ'd"ee( e)e e(e)f ee( dddZ*eee(ej+dddZ,G dd deZ-G dd dZ.G dd deZ/dee(ef dd d!Z0dS )#é N)Úunified_diff)Ú
TYPE_CHECKINGÚAnyÚDictÚListÚTuple)Únodes)ÚElementÚNode)Ú
directives)Ú
StringList)Úaddnodes)ÚConfig)Úoptional_int)Ú__)ÚloggingÚparselinenos)ÚSphinxDirective)Ú
OptionSpec)ÚSphinxc @ sF e Zd ZU dZdZdZdZdZej ej
dZee
e dddZd S )
Ú Highlightzt
Directive to set the highlighting language for code blocks, as well
as the threshold for line numbers.
Fé r )ÚforceÚlinenothreshold)Úreturnc C sF | j d j }| jjdtj}d| jk}|| jjd<