mathup
Version:
Easy MathML authoring tool with a quick to write syntax
17 lines (13 loc) • 321 B
JavaScript
import { handlePrefixed } from "./utils.js";
/** @type {import("./index.js").Scanner} */
export default function octothorpeScanner(char, input, { start }) {
if (char !== "#") {
return null;
}
const { end, value } = handlePrefixed("#", start, input);
return {
type: "number",
value,
end,
};
}