prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
18 lines (17 loc) • 490 B
JavaScript
var clikeComment = /\/\/.*|\/\*[^]*?(?:\*\/|$)/g;
var clikeString = /(["'])(?:\\[^]|(?!\1)[^\\\n])*\1/g;
var clikeNumber = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i;
var clikePunctuation = /[()[\]{}.,:;]/;
var boolean = /\b(?:false|true)\b/;
var dotPunctuation = {
"punctuation": /\./
};
export {
clikeComment as a,
boolean as b,
clikeString as c,
dotPunctuation as d,
clikePunctuation as e,
clikeNumber as f
};
//# sourceMappingURL=patterns-Jkz_nwNQ.js.map