Parse ///
comments and extracts context from SCSS.
npm install --save scss-comment-parser
var ScssCommentParser = require('scss-comment-parser');
var annotations = {
_: {
alias: {
'aliasTest': 'annotationTest'
}
},
annotationTest: function ( commentLine ) {
return 'Working';
}
};
var parser = new ScssCommentParser( annotations );
var scss = /* Load Scss */
var comments = parser.parse ( scss );
console.log(comments);
- Fix parsing of variable values containing semicolons.
- Fix remaining previous package name.
- Fix selectors with interpolations parsing.
- Fix CSS line numbers, expected by SassDoc.
- Allow CSS context parsing.
- Update to
cdocparser@0.14.0
- Update to
cdocparser@0.13.0
- Make changes needed for SassDoc 2.0
- Update to
cdocparser@0.5.0
- Add support for configuration passed to the extractor.
- Update to
cdocparser@0.4.0
- Add support for configuration passed to the extractor.
- Update to
cdocparser@0.3.0
supporting///
comments - Include a
context.line
withstart, end
value for each detected code part
- Added
context.code
to typeplaceholder
.
- Update to
cdocparser
0.2.1
- Add placeholder support (thanks to callum)
- Remove first opening and last closing brace in
context.code
- Fixed wrong code extraction for
function
andmixin
. (See #11)
- Added
context.code
to typefunction
andmixin
containing the whole code.
- Fix bug in detection of comment blocks
- Update dependencys
- Fix multiline annotations to include
@
- Initial release