Lines Matching +full:- +full:1
10 * GfmTable uses an entry/exit lexer state with allowedModes-driven inline
11 * nesting, then runs a small post-pass rewriter (Handler\GfmTable) that
21 $this->assertSame(55, (new GfmTable())->getSort());
27 $this->P->addMode('gfm_table', new GfmTable());
28 $this->P->parse("| foo | bar |\n| --- | --- |\n| baz | bim |");
32 ['table_open', [2, 2, 1]],
35 ['tableheader_open', [1, null, 1]],
38 ['tableheader_open', [1, null, 1]],
45 ['tablecell_open', [1, null, 1]],
48 ['tablecell_open', [1, null, 1]],
56 $this->assertCalls($expected, $this->H->calls);
59 /** Spec example 199: alignment via `:-:` and `---:`, no outer pipes. */
62 $this->P->addMode('gfm_table', new GfmTable());
63 $this->P->parse("| abc | defghi |\n:-: | -----------:\nbar | baz");
67 ['table_open', [2, 2, 1]],
70 ['tableheader_open', [1, 'center', 1]],
73 ['tableheader_open', [1, 'right', 1]],
80 ['tablecell_open', [1, 'center', 1]],
83 ['tablecell_open', [1, 'right', 1]],
91 $this->assertCalls($expected, $this->H->calls);
94 /** Spec example 200 (partial): a backslash-escaped pipe must not split
98 * so the rewriter's own per-cell `\|`→`|` pass is what produces the
102 $this->P->addMode('gfm_table', new GfmTable());
103 $this->P->parse("| f\\|oo |\n| ---- |");
106 // tables-extension pipe rewrite.
109 ['table_open', [1, 1, 1]],
112 ['tableheader_open', [1, null, 1]],
120 $this->assertCalls($expected, $this->H->calls);
126 $this->P->addMode('gfm_table', new GfmTable());
127 $this->P->parse("| abc | def |\n| --- | --- |\n| bar | baz |\n> bar");
133 ['table_open', [2, 2, 1]],
136 ['tableheader_open', [1, null, 1]],
139 ['tableheader_open', [1, null, 1]],
146 ['tablecell_open', [1, null, 1]],
149 ['tablecell_open', [1, null, 1]],
160 $this->assertCalls($expected, $this->H->calls);
166 $this->P->addMode('gfm_table', new GfmTable());
167 $this->P->parse("| abc | def |\n| --- | --- |\n| bar | baz |\nbar");
171 ['table_open', [2, 3, 1]],
174 ['tableheader_open', [1, null, 1]],
177 ['tableheader_open', [1, null, 1]],
184 ['tablecell_open', [1, null, 1]],
187 ['tablecell_open', [1, null, 1]],
192 ['tablecell_open', [1, null, 1]],
195 ['tablecell_open', [1, null, 1]],
202 $this->assertCalls($expected, $this->H->calls);
208 $this->P->addMode('gfm_table', new GfmTable());
209 $this->P->parse("| abc | def |\n| --- | --- |\n| bar |\n| bar | baz | boo |");
213 ['table_open', [2, 3, 1]],
216 ['tableheader_open', [1, null, 1]],
219 ['tableheader_open', [1, null, 1]],
226 ['tablecell_open', [1, null, 1]],
229 ['tablecell_open', [1, null, 1]],
233 ['tablecell_open', [1, null, 1]],
236 ['tablecell_open', [1, null, 1]],
244 $this->assertCalls($expected, $this->H->calls);
247 /** Spec example 203: header has 2 cells, delimiter has 1 - the regex
252 $this->P->addMode('gfm_table', new GfmTable());
253 $this->P->parse("| abc | def |\n| --- |\n| bar |");
258 ['cdata', ["| abc | def |\n| --- |\n| bar |"]],
262 $this->assertCalls($expected, $this->H->calls);
268 $this->P->addMode('gfm_table', new GfmTable());
269 $this->P->parse("| abc | def |\n| --- | --- |");
273 ['table_open', [2, 1, 1]],
276 ['tableheader_open', [1, null, 1]],
279 ['tableheader_open', [1, null, 1]],
287 $this->assertCalls($expected, $this->H->calls);