on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
16 lines (15 loc) • 349 B
JavaScript
import { TokenType as t } from "../../../types.mjs";
const e = {
name: "html",
patterns: {
[t.Comment]: /^<!--[\s\S]*?-->/,
[t.Tag]: /^<\/?[^\s>]+/,
[t.Attribute]: /^\s+[a-zA-Z_:][a-zA-Z0-9_:.-]*(?=\s*=)/,
[t.String]: /^=\s*(['"])(.*?)\1/,
[t.Punctuation]: /^[<>\/=]/
},
keywords: []
};
export {
e as htmlDefinition
};