UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

18 lines (17 loc) 830 B
import { l as t, i } from "../prismCore-5c7f03d0.js"; import "./javascript.js"; import "./clike.js"; var e = t.actionscript = t.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }); e["class-name"].alias = "function"; delete e.parameter; delete e["literal-property"]; i("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: "markup" } });