import { Decoration, DecorationSet, EditorView, syntaxTree, ViewPlugin, ViewUpdate, } from "../deps.ts"; import { isCursorInRange } from "./util.ts"; function getDirectives(view: EditorView) { const widgets: any[] = []; for (const { from, to } of view.visibleRanges) { syntaxTree(view.state).iterate({ from, to, enter: ({ type, from, to }) => { if (type.name !== "CommentBlock") { return; } const text = view.state.sliceDoc(from, to); if (/