massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / commonmark / commonmark / blocks.pyi
1 from typing import Any
2
3 CODE_INDENT: int
4 reHtmlBlockOpen: Any
5 reHtmlBlockClose: Any
6 reThematicBreak: Any
7 reMaybeSpecial: Any
8 reNonSpace: Any
9 reBulletListMarker: Any
10 reOrderedListMarker: Any
11 reATXHeadingMarker: Any
12 reCodeFence: Any
13 reClosingCodeFence: Any
14 reSetextHeadingLine: Any
15 reLineEnding: Any
16
17 def is_blank(s): ...
18 def is_space_or_tab(s): ...
19 def peek(ln, pos): ...
20 def ends_with_blank_line(block): ...
21 def parse_list_marker(parser, container): ...
22 def lists_match(list_data, item_data): ...
23
24 class Block:
25     accepts_lines: Any
26     @staticmethod
27     def continue_(parser: Any | None = ..., container: Any | None = ...) -> None: ...
28     @staticmethod
29     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
30     @staticmethod
31     def can_contain(t) -> None: ...
32
33 class Document(Block):
34     accepts_lines: bool
35     @staticmethod
36     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
37     @staticmethod
38     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
39     @staticmethod
40     def can_contain(t): ...
41
42 class List(Block):
43     accepts_lines: bool
44     @staticmethod
45     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
46     @staticmethod
47     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
48     @staticmethod
49     def can_contain(t): ...
50
51 class BlockQuote(Block):
52     accepts_lines: bool
53     @staticmethod
54     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
55     @staticmethod
56     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
57     @staticmethod
58     def can_contain(t): ...
59
60 class Item(Block):
61     accepts_lines: bool
62     @staticmethod
63     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
64     @staticmethod
65     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
66     @staticmethod
67     def can_contain(t): ...
68
69 class Heading(Block):
70     accepts_lines: bool
71     @staticmethod
72     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
73     @staticmethod
74     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
75     @staticmethod
76     def can_contain(t): ...
77
78 class ThematicBreak(Block):
79     accepts_lines: bool
80     @staticmethod
81     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
82     @staticmethod
83     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
84     @staticmethod
85     def can_contain(t): ...
86
87 class CodeBlock(Block):
88     accepts_lines: bool
89     @staticmethod
90     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
91     @staticmethod
92     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
93     @staticmethod
94     def can_contain(t): ...
95
96 class HtmlBlock(Block):
97     accepts_lines: bool
98     @staticmethod
99     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
100     @staticmethod
101     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
102     @staticmethod
103     def can_contain(t): ...
104
105 class Paragraph(Block):
106     accepts_lines: bool
107     @staticmethod
108     def continue_(parser: Any | None = ..., container: Any | None = ...): ...
109     @staticmethod
110     def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
111     @staticmethod
112     def can_contain(t): ...
113
114 class BlockStarts:
115     METHODS: Any
116     @staticmethod
117     def block_quote(parser, container: Any | None = ...): ...
118     @staticmethod
119     def atx_heading(parser, container: Any | None = ...): ...
120     @staticmethod
121     def fenced_code_block(parser, container: Any | None = ...): ...
122     @staticmethod
123     def html_block(parser, container: Any | None = ...): ...
124     @staticmethod
125     def setext_heading(parser, container: Any | None = ...): ...
126     @staticmethod
127     def thematic_break(parser, container: Any | None = ...): ...
128     @staticmethod
129     def list_item(parser, container: Any | None = ...): ...
130     @staticmethod
131     def indented_code_block(parser, container: Any | None = ...): ...
132
133 class Parser:
134     doc: Any
135     block_starts: Any
136     tip: Any
137     oldtip: Any
138     current_line: str
139     line_number: int
140     offset: int
141     column: int
142     next_nonspace: int
143     next_nonspace_column: int
144     indent: int
145     indented: bool
146     blank: bool
147     partially_consumed_tab: bool
148     all_closed: bool
149     last_matched_container: Any
150     refmap: Any
151     last_line_length: int
152     inline_parser: Any
153     options: Any
154     def __init__(self, options=...) -> None: ...
155     def add_line(self) -> None: ...
156     def add_child(self, tag, offset): ...
157     def close_unmatched_blocks(self) -> None: ...
158     def find_next_nonspace(self) -> None: ...
159     def advance_next_nonspace(self) -> None: ...
160     def advance_offset(self, count, columns) -> None: ...
161     def incorporate_line(self, ln) -> None: ...
162     def finalize(self, block, line_number) -> None: ...
163     def process_inlines(self, block) -> None: ...
164     def parse(self, my_input): ...
165
166 CAMEL_RE: Any