Method
__init__
(
self,
rawsource: str = '',
text: str = '',
*children: Node,
**attributes: Any,
)
Source from the content-addressed store, hash-verified
| 25 | """Node for a string literal in a grammar snippet.""" |
| 26 | |
| 27 | def __init__( |
| 28 | self, |
| 29 | rawsource: str = '', |
| 30 | text: str = '', |
| 31 | *children: Node, |
| 32 | **attributes: Any, |
| 33 | ) -> None: |
| 34 | super().__init__(rawsource, text, *children, **attributes) |
| 35 | # Use the Pygments highlight class for `Literal.String.Other` |
| 36 | self['classes'].append('sx') |
| 37 | |
| 38 | |
| 39 | class GrammarSnippetBase(SphinxDirective): |
Callers
nothing calls this directly
Tested by
no test coverage detected