diff options
Diffstat (limited to 'public/prism/prism-awk.min.js')
| -rw-r--r-- | public/prism/prism-awk.min.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/public/prism/prism-awk.min.js b/public/prism/prism-awk.min.js new file mode 100644 index 0000000..a34b266 --- /dev/null +++ b/public/prism/prism-awk.min.js @@ -0,0 +1,22 @@ +(Prism.languages.awk = { + hashbang: { pattern: /^#!.*/, greedy: !0, alias: 'comment' }, + comment: { pattern: /#.*/, greedy: !0 }, + string: { + pattern: /(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/, + lookbehind: !0, + greedy: !0, + }, + regex: { + pattern: /((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//, + lookbehind: !0, + greedy: !0, + }, + 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-F0-9]+)\b/, + operator: /--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/, + punctuation: /[()[\]{},;]/, +}), + (Prism.languages.gawk = Prism.languages.awk); |
