UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

8 lines (7 loc) 310 B
const s = /[([{][^\n)\]}]*$|((^|[^.])\b(if\s*\(.+?\)|else|case.+?:))[ \t]*$/, a = /\[]|\(\)|{}/, e = /<(?!\d)([^\s>\/=$<%]+)(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*>[ \t]*$/, i = /^<\/(?!\d)[^\s>\/=$<%]+\s*>/; export { e as a, s as c, a as i, i as x };