mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 12:53:41 +08:00
f3dee5863f
The 10+ version has actually a bug with bash. We will wait a little bit before upgrading to 10, we should also make sure any of the breaking changes listed here https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_BREAKING_CHANGES.md are not impacting us.
1 line
423 B
JavaScript
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]}]}}); |