Describes how comments for a language work.

interface CommentRule {
    blockComment?: null | CharacterPair;
    lineComment?: null | string | LineCommentConfig;
}

Properties

blockComment?: null | CharacterPair

The block comment character pair, like /* block comment */

lineComment?: null | string | LineCommentConfig

The line comment token, like // this is a comment. Can be a string or an object with comment and optional noIndent properties.