smalltalk.min.js 725 B

1234567891011
  1. /*! `smalltalk` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{const n="[a-z][a-zA-Z0-9_]*",a={
  3. className:"string",begin:"\\$.{1}"},s={className:"symbol",
  4. begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],
  5. keywords:["self","super","nil","true","false","thisContext"],
  6. contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",
  7. begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:n+":",relevance:0
  8. },e.C_NUMBER_MODE,s,a,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,
  9. end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"#\\(",
  10. end:"\\)",contains:[e.APOS_STRING_MODE,a,e.C_NUMBER_MODE,s]}]}}})()
  11. ;hljs.registerLanguage("smalltalk",e)})();