C2FO/nools — pull request #27 by xmltechgeek (2013-03-31 23:05:56+00:00)
Title: Add a comment block type to the parser.

Add a comment block syntax to the parser so that things like a copyright and other block comments can be added. Also sets up for self documenting rules.

Add this to lib/parser/nools/tokens.js in the exports block:
``` javascript

"/": function (orig, context) {
// Block Comment parse
if (orig.match(/^\/\*/)) {
return orig.replace(/\/\*.*\*\//, "");
}
// Line Comment parse
else if (orig.match(/^\/\//)) {
return orig.replace(/\/\/\n/, "");
}
else {
return orig;
}
},
```