Fix for KT-13197 Markdown indented code blocks are not recognized by quick doc

Expanded code blocks lexer test, to cover indented code blocks
This commit is contained in:
Simon Ogorodnik
2016-11-14 14:28:52 +03:00
parent 3376dbb10d
commit 94770f8447
8 changed files with 255 additions and 175 deletions
+22
View File
@@ -0,0 +1,22 @@
/**
* val a = A()
* println(a) // comment
* ```
* <fenced>Code_block</fenced>
* ```
* val b = B()
* println(b)
* some text content
*
* Indented code block with tab
* Second line
*/
class <caret>A
//INFO: <b>public</b> <b>final</b> <b>class</b> A <i>defined in</i> root package<br/><pre><code>val a = A()
//INFO: println(a) // comment</code></pre><pre><code>
//INFO: &lt;fenced&gt;Code_block&lt;/fenced&gt;
//INFO: </code></pre><pre><code>val b = B()
//INFO: println(b)</code></pre><p>some text content</p>
//INFO: <pre><code>Indented code block with tab
//INFO: Second line</code></pre>