* follow-up #17930 - inline syntax highlighting * make closure->nimcall
This commit is contained in:
parent
d83b25db1e
commit
2096490b59
3 changed files with 57 additions and 24 deletions
|
|
@ -371,6 +371,27 @@ suite "RST inline markup":
|
|||
rnLeaf '```'
|
||||
""")
|
||||
|
||||
test "interpreted text parsing: code fragments":
|
||||
check(dedent"""
|
||||
.. default-role:: option
|
||||
|
||||
`--gc:refc`""".toAst ==
|
||||
dedent"""
|
||||
rnInner
|
||||
rnDefaultRole
|
||||
rnDirArg
|
||||
rnLeaf 'option'
|
||||
[nil]
|
||||
[nil]
|
||||
rnParagraph
|
||||
rnCodeFragment
|
||||
rnInner
|
||||
rnLeaf '--'
|
||||
rnLeaf 'gc'
|
||||
rnLeaf ':'
|
||||
rnLeaf 'refc'
|
||||
rnLeaf 'option'
|
||||
""")
|
||||
|
||||
test """interpreted text can be ended with \` """:
|
||||
let output = (".. default-role:: literal\n" & """`\``""").toAst
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue