mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
* follow-up #17930 - inline syntax highlighting * make closure->nimcall
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user