Bug 9037 – DDoc: Chokes on consecutive example sections:

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-17T01:35:00Z
Last change time
2015-06-09T05:12:00Z
Keywords
ddoc, pull, rejects-valid
Assigned to
nobody
Creator
monarchdodra

Comments

Comment #0 by monarchdodra — 2012-11-17T01:35:30Z
dmd -Dfdoc main.d: ================================= /** Example: ---- D d = d; ---- ---- D d = d; ---- */ void main() { } ================================= main.d(10): Error: function D main unmatched --- in DDoc comment ================================= Adding an empty line between the examples makes it compile: ================================= /** Example: ---- D d = d; ---- ---- D d = d; ---- */ void main() { } ================================= Yay. =================================
Comment #1 by k.hara.pg — 2012-12-13T23:38:24Z
Comment #2 by github-bugzilla — 2012-12-14T03:35:54Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/473499c0e461ccd43baad3239db14d230a7699e0 fix Issue 9037 - DDoc: Chokes on consecutive example sections https://github.com/D-Programming-Language/dmd/commit/cc4ae6df558914a3cc1449182ab6c363e9b134b9 Merge pull request #1376 from 9rnsr/fix9037 Issue 9037 - DDoc: Chokes on consecutive example sections
Comment #3 by github-bugzilla — 2012-12-28T11:21:33Z