Skip to content

Commit

Permalink
Rolled back comment changes from this branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
paullryan committed Apr 1, 2013
1 parent b743e7d commit 7ec79f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
14 changes: 0 additions & 14 deletions lib/parser/nools/tokens.js
Expand Up @@ -121,20 +121,6 @@ var ruleTokens = {
};

module.exports = {
"/": 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;
}
},

"define": function (orig, context) {
var src = orig.replace(/^define\s*/, "");
var name = src.match(/^([a-zA-Z_$][0-9a-zA-Z_$]*)/);
Expand Down
8 changes: 0 additions & 8 deletions test/rules/simple.nools
@@ -1,7 +1,3 @@
/**
* This is a simple block comment should be ignored by the parser.
*/

define Message {
message : "",
constructor : function (message) {
Expand All @@ -20,10 +16,6 @@ rule Hello {
}
}

/*
* Second Block to ensure non-greedy
*/

rule Goodbye {
when {
m : Message m.message =~ /.*goodbye$/
Expand Down

0 comments on commit 7ec79f9

Please sign in to comment.