Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
// AUTO-GENERATED by scripts/build_mermaid_grammars.mts from the grammar in this directory.
// This file was generated by lezer-generator. You probably shouldn't edit it.
import {LRParser} from "@lezer/lr"
import {fieldTokens} from "./tokens.js"
import {sankeyHighlighting} from "./highlight.js"
const spec_identifier = {__proto__:null,"sankey-beta":26, sankey:28}
export const parser = LRParser.deserialize({
version: 14,
states: "#YOVQQOOO_QQO'#CgQOQQOOOOQO'#C^'#C^OgQRO,59ROoQQO,59ROOQO'#C`'#C`OwQQO'#C_OOQO,58|,58|O|QRO1G.mOOQO-E6`-E6`O!UQRO,58yP!UQRO'#CbO!ZQQO1G.eO!`QRO7+$POOQO'#Ca'#CaOOQO<<Gk<<Gk",
stateData: "!h~OYOS~O]RO^RO~O_SOVZX~OWUOVZa~O_XOVZa~O`ZO~OWUOVZi~OWUO~O`^O~OW_O~O_Y~",
goto: "y[PP]`empPPPPvRPOVWSX[UVSX[R]ZR`^QTPRYTRQO",
nodeNames: "⚠ SankeyDiagram DiagramName Row Field Value",
maxTerm: 16,
propSources: [sankeyHighlighting],
skippedNodes: [0],
repeatNodeCount: 1,
tokenData: "!f~RWXYkYZy]^kpqk|}!R}!O!W!c!}!W#T#o!W~pRY~XYk]^kpqk~!OP_~YZy~!WO`~~!]R[~}!O!W!c!}!W#T#o!W",
tokenizers: [fieldTokens, 0],
topRules: {"SankeyDiagram":[0,1]},
specialized: [{term: 12, get: (value: keyof typeof spec_identifier) => spec_identifier[value] || -1}],
tokenPrec: 67
})