Skip to content

TreeSitterGrammar

type TreeSitterGrammar =
    {
        Language: string
        Aliases: string list
        Continuation: string option
        Source: TreeSitterGrammarSource
    }
AssemblyNacara.Plugin.Highlight.TreeSitter

A grammar this site can colour with: what it is called, and where it comes from.

Fields

Language: string

What a fence writes after its backticks.

Aliases: string list

Other names the same fence is written with, on top of the ones already known.

Continuation: string option

What a snippet of this language continues from, when it is a fragment.

Used only when a snippet does not parse on its own, and dropped from what comes out.

Source: TreeSitterGrammarSource

Files to read, or a repository to build them from.