UNPKG

mathup

Version:

Easy MathML authoring tool with a quick to write syntax

14 lines (11 loc) 285 B
import { handlePrefixed } from "./utils.js"; /** @type {import("./index.js").Scanner} */ export default function backslashScanner(char, input, { start }) { if (char !== "\\") { return null; } return { type: "operator", ...handlePrefixed("\\", start, input), }; }