cdocparser
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -70,3 +70,3 @@ /** | ||
var content = line.substr(match.index + match[0].length).trim(); | ||
var result = annotationParser(match[2]); | ||
var result = annotationParser(content); | ||
@@ -73,0 +73,0 @@ // If it is a boolean use the annotaion as a flag |
{ | ||
"name": "cdocparser", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Extract C style comments and extract context from source", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,3 +45,4 @@ var assert = require("assert"); | ||
{ lines : ['test', 'test', '@test'], context : { type : 'testType3'} }, | ||
{ lines : ['test', 'test', '@flag'], context : { type : 'testType3'} } | ||
{ lines : ['test', 'test', '@flag'], context : { type : 'testType3'} }, | ||
{ lines : ['@multiline\nThis is a\nmultiline\nannotation\n'], context : { type : 'testType3'} } | ||
]; | ||
@@ -62,2 +63,6 @@ | ||
return true; | ||
}, | ||
multiline : function(commentLine){ | ||
return commentLine; | ||
} | ||
@@ -73,3 +78,3 @@ }; | ||
assert.equal(result.testType2.length , 2); | ||
assert.equal(result.testType3.length , 2); | ||
assert.equal(result.testType3.length , 3); | ||
}); | ||
@@ -94,4 +99,10 @@ | ||
it('should parse a multiline annotation', function(){ | ||
var result = parser.parse ( comments ); | ||
assert.equal(result.testType3[2].multiline[0] , "This is a\nmultiline\nannotation"); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9127
172