UNPKG

prism-react-editor

Version:

Lightweight, extensible code editor component for React apps

30 lines (29 loc) 912 B
import { l as languages } from "../../index-k28m3HFc.js"; languages.gawk = languages.awk = { "hashbang": { pattern: /^#!.*/g, greedy: true, alias: "comment" }, "comment": { pattern: /#.*/g, greedy: true }, "string": { pattern: /(^|[^\\])"(?:\\.|[^\\\n"])*"/g, lookbehind: true, greedy: true }, "regex": { pattern: /((?:^|[^\w\s)])\s*)\/(?:\\.|[^\\\n/])*\//g, lookbehind: true, greedy: true }, "variable": /\$\w+/, "keyword": /\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/, "function": /\b[a-z_]\w*(?=\s*\()/i, "number": /\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F\d]+)\b/, "operator": /--|\+\+|!?~|>&|>>|<<|(?:\*\*|[%^!=<>/*+-])=?|&&|\|[|&]|[?:]/, "punctuation": /[()[\]{},;]/ }; //# sourceMappingURL=awk.js.map