erlang-repl.min.js 895 B

12345678910111213
  1. /*! `erlang-repl` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{const n=e.regex;return{
  3. name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",
  4. keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"
  5. },contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10
  6. },e.COMMENT("%","$"),{className:"number",
  7. begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",
  8. relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{
  9. begin:n.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{
  10. begin:"ok"},{begin:"!"},{
  11. begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",
  12. relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}})()
  13. ;hljs.registerLanguage("erlang-repl",e)})();