Describes folding rules for a language.

interface FoldingRules {
    markers?: FoldingMarkers;
    offSide?: boolean;
}

Properties

Properties

markers?: FoldingMarkers

Region markers used by the language.

offSide?: boolean

Used by the indentation based strategy to decide whether empty lines belong to the previous or the next block. A language adheres to the off-side rule if blocks in that language are expressed by their indentation. See wikipedia for more information. If not set, false is used and empty lines belong to the previous block.