Describes how comments for a language work.

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

Properties

blockComment?: CharacterPair

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

lineComment?: string | LineCommentConfig

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