prolog.min.js 762 B

1234567891011
  1. /*! `prolog` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var n=(()=>{"use strict";return n=>{const e={begin:/\(/,end:/\)/,
  3. relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,
  4. contains:[n.PHRASAL_WORDS_MODE]},i={className:"string",begin:/`/,end:/`/,
  5. contains:[n.BACKSLASH_ESCAPE]},g=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{
  6. className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{
  7. begin:/_[A-Za-z0-9_]*/}],relevance:0},e,{begin:/:-/
  8. },a,s,n.C_BLOCK_COMMENT_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,i,{
  9. className:"string",begin:/0'(\\'|.)/},{className:"string",begin:/0'\\s/
  10. },n.C_NUMBER_MODE];return e.contains=g,a.contains=g,{name:"Prolog",
  11. contains:g.concat([{begin:/\.$/}])}}})();hljs.registerLanguage("prolog",n)})();