awk.min.js 740 B

1234567891011
  1. /*! `awk` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>({name:"Awk",keywords:{
  3. keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"
  4. },contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{
  5. begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],
  6. variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,
  7. end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{
  8. begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{
  9. begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]
  10. },e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]})})()
  11. ;hljs.registerLanguage("awk",e)})();