dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
534 stars 66 forks source link

docs will not generate: alias unmatched? #158

Closed cyisfor closed 8 years ago

cyisfor commented 9 years ago

pegged/peg.d(2680): Error: alias pegged.peg.backquote unmatched --- in DDoc comment

backquote has special meaning in ddoc, and it's supposed to treat an unmatched backtick as a literal backtick, but for some reason it errors out instead, despite the docs saying differently. It appears to be treating the text " (backquote)" as if it were code. Anyway, the API documentation generates if you substitute the $(BACKTICK) macro for ` in that line's comment.

DMD64 D Compiler v2.067 Copyright (c) 1999-2014 by Digital Mars written by Walter Bright

PhilippeSigaud commented 9 years ago

OK, I changed ligne 2680 to use $(BACKTICK) instead of `.

I don't have an easy access to a D compiler right now. Could you please see if that works with your DMD version?

I yes, I'll push the Pegged version to 0.2.2, so that dub catches it.

PhilippeSigaud commented 9 years ago

Thats commit da9306f627ff060029dd9e7a5e10ebd791d34bc2, btw.

PhilippeSigaud commented 9 years ago

OK, I downloaded and installed DMD 2.067.1 (wow, much faster than a year ago!).

rdmd -unitest -D pegged/dev/test.d

compiles without trouble.

cyisfor commented 8 years ago

Just wanted to say thanks!

PhilippeSigaud commented 8 years ago

You're welcome!