2022-09-20 11:43:28 -04:00
|
|
|
/*! `smalltalk` grammar compiled for Highlight.js 11.6.0 */
|
|
|
|
(()=>{var e=(()=>{"use strict";return e=>{const n="[a-z][a-zA-Z0-9_]*",a={
|
|
|
|
className:"string",begin:"\\$.{1}"},s={className:"symbol",
|
|
|
|
begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],
|
|
|
|
keywords:["self","super","nil","true","false","thisContext"],
|
2021-03-10 11:35:00 -05:00
|
|
|
contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",
|
|
|
|
begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:n+":",relevance:0
|
|
|
|
},e.C_NUMBER_MODE,s,a,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,
|
|
|
|
end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"#\\(",
|
2022-09-20 11:43:28 -04:00
|
|
|
end:"\\)",contains:[e.APOS_STRING_MODE,a,e.C_NUMBER_MODE,s]}]}}})()
|
|
|
|
;hljs.registerLanguage("smalltalk",e)})();
|