UNPKG

mathup

Version:

Easy MathML authoring tool with a quick to write syntax

17 lines (13 loc) 313 B
import { handleBacktick } from "./utils.js"; /** @type {import("./index.js").Scanner} */ export default function backtickScanner(char, input, { start }) { if (char !== "`") { return null; } const { end, value } = handleBacktick(start, input); return { type: "ident", value, end, }; }