Skip to content

Commit c8a6d5b

Browse files
committed
Warning in case of 0. as start of a list.
When having an example like: ``` \mainpage The mainpage Steps: 0. First step - sub step 1. Second step ``` we get a warnings like: ``` aa.md:7: warning: Invalid list item found ``` this is due to the fact that `0.` is not recognized as start of a list. There is no objection against having `0.` as start of a list, added it. When not having the sub element the `0. ...` is seen just as regular text. (Note due to the documented way doxygen handles the list numbering, the `0.` is shown as `1.` and the original `1.` as `2.).
1 parent c97f00e commit c8a6d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doctokenizer.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ MAILADDR2 {MAILWS}+{BLANK}+("at"|"AT"|"_at_"|"_AT_"){BLANK}+{MAILWS}+("dot"|"DOT
279279
OPTSTARS ("/""/"{BLANK}*)?"*"*{BLANK}*
280280
LISTITEM {BLANK}*[-]("#")?{WS}
281281
MLISTITEM {BLANK}*[+*]{WS}
282-
OLISTITEM {BLANK}*[1-9][0-9]*"."{BLANK}
282+
OLISTITEM ({BLANK}*[1-9][0-9]*"."{BLANK}|{BLANK}*"0."{BLANK})
283283
CLISTITEM {BLANK}*[-]{BLANK}*"\["[ xX]"\]"
284284
ENDLIST {BLANK}*"."{BLANK}*(\n|"\\ilinebr")
285285
ATTRNAME [a-z_A-Z\x80-\xFF][:a-z_A-Z0-9\x80-\xFF\-]*

0 commit comments

Comments
 (0)