mirror of
https://github.com/flozz/StackBlur.git
synced 2026-01-18 14:18:38 +00:00
- Fix: Duck type with image or canvas in place of `instanceof` check (and a broken one) - Enhancement: Add JSDoc comments - Linting (ESLint): Add ESLint with "standard" base - Linting (Markdown): Add `.remarkrc` - Linting (package.json): Add recommended properties - Linting (HTML): Add empty favicon to suppress console - License: Change MIT license file name to reflect license type (MIT) - Docs: Move changelog to own file: `CHANGES.md` - Demo: Move demo to own directory (with static server to avoid Chrome security problems reaching out of folder) - Demo: Move JS and CSS to separate files for easier linting/examination - Build: Move from Grunt to Rollup, supporting ES6 Modules distribution as well as UMD - Build: Add npm-recommended `package-lock.json` - npm: Add start, eslint, rollup, open-docs, docs scripts - npm: Add `module` for ES6 module discovery and switch `main` to point to `dist` - npm: Bump to 2.0.0
3 lines
861 B
JavaScript
3 lines
861 B
JavaScript
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com",
|
||
/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);
|