RST opt.list to have priority over def.list (#17845)

This commit is contained in:
Andrey Makarov 2021-05-15 09:12:26 +03:00 • committed by GitHub
commit 3824fd3f9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 2 deletions

View file

@ -1867,10 +1867,10 @@ proc whichSection(p: RstParser): RstNodeKind =
elif match(p, p.idx, "(e) ") or match(p, p.idx, "e) ") or
match(p, p.idx, "e. "):
result = rnEnumList
elif isDefList(p):
result = rnDefList
elif isOptionList(p):
result = rnOptionList
elif isDefList(p):
result = rnDefList
else:
result = rnParagraph
of tkWord, tkOther, tkWhite: