Skip to content

Commit

Permalink
Merge pull request #381 from jmdavis/comments
Browse files Browse the repository at this point in the history
Remove section in style guide about comments.
  • Loading branch information
AndrejMitrovic committed Sep 20, 2013
2 parents f03501e + d1147ae commit 0c98acd
Showing 1 changed file with 0 additions and 62 deletions.
62 changes: 0 additions & 62 deletions dstyle.dd
Expand Up @@ -27,68 +27,6 @@ $(UL
$(LI Each indentation level will be four columns.)
)

$(H3 Comments)

$(UL
$(LI Use // comments to document a single line:
-------------------------------
statement; // comment
statement; // comment
-------------------------------
)

$(LI Use block comments to document a multiple line block of
statements:
-------------------------------
/* comment
* comment
*/
statement;
statement;
-------------------------------
)

$(LI Use $(CODE version (none)) to $(SINGLEQUOTE comment out) a piece of trial code
that is syntactically valid:
-------------------------------
version (none)
{
/* comment
* comment
*/
statement;
statement;
}
-------------------------------

It can be turned on with $(CODE version(all)):

-------------------------------
version (all)
{
/* comment
* comment
*/
statement;
statement;
}
-------------------------------

)

$(LI Use nesting comments to $(SINGLEQUOTE comment out) a piece of syntactically invalid code:
-------------------------------
/+++++
/* comment
* comment
*/
{ statement;
statement;
+++++/
-------------------------------
)
)

$(H3 Naming Conventions)

$(DL
Expand Down

0 comments on commit 0c98acd

Please sign in to comment.