diff options
Diffstat (limited to 'pyssg.xyz/live/static/hl/languages/awk.min.js')
-rw-r--r-- | pyssg.xyz/live/static/hl/languages/awk.min.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pyssg.xyz/live/static/hl/languages/awk.min.js b/pyssg.xyz/live/static/hl/languages/awk.min.js new file mode 100644 index 0000000..19cadac --- /dev/null +++ b/pyssg.xyz/live/static/hl/languages/awk.min.js @@ -0,0 +1,9 @@ +hljs.registerLanguage("awk",(()=>{"use strict";return e=>({name:"Awk",keywords:{ +keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10" +},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{ +begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE], +variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/, +end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{ +begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{ +begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] +},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]})})());
\ No newline at end of file |