discourse/vendor/assets/javascripts/highlightjs/languages/smalltalk.min.js

1 line
423 B
JavaScript

hljs.registerLanguage("smalltalk",function(e){var a="[a-z][a-zA-Z0-9_]*",s={cN:"string",b:"\\$.{1}"},l={cN:"symbol",b:"#"+e.UIR};return{aliases:["st"],k:"self super nil true false thisContext",c:[e.C('"','"'),e.ASM,{cN:"type",b:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{b:a+":",relevance:0},e.CNM,l,s,{b:"\\|[ ]*"+a+"([ ]+"+a+")*[ ]*\\|",rB:!0,e:/\|/,i:/\S/,c:[{b:"(\\|[ ]*)?"+a}]},{b:"\\#\\(",e:"\\)",c:[e.ASM,s,e.CNM,l]}]}});