sparser icon indicating copy to clipboard operation
sparser copied to clipboard

Contributing

Open prettydiff opened this issue 7 years ago • 0 comments

  • Create a contributing.md file in the docs folder with a checklist of items for contributing new lexers
    • must pass build
    • lexer is self contained... no external references (except sparser object) or resources in the code
    • must pass code review (lots of code comments will expedite this)
    • code style is free for all
  • Create a checklist of things to test that aids in the creation of lexers
    • a lexer must have a [lexer name].md file with the necessary sections in the necessary order
    • a lexer uses the boilerplate as a starting point
/*global global*/
(function markdown_init() {
    "use strict";
    const sparser: sparser = global.sparser,
        markdown = function lexer_markdown(source:string): data {
            // your code here
        };
    sparser.lexers.markdown = markdown;
}());

prettydiff avatar Feb 07 '19 17:02 prettydiff