hpi-swa / sandblocks

A projectional editor for Squeak/Smalltalk.
MIT License
35 stars 3 forks source link

SVG-Morphic uses underscore assignments #35

Closed stlutz closed 3 years ago

stlutz commented 3 years ago

Having underscore assignments disabled will cause issues when loading and using sandblocks.

tom95 commented 3 years ago

Fixed now :) Was an artifact of the old import script.

For reference, to migrate old code, this snippet can be used (with care):

SBStBlockLocator new symbolsMatching: 'icon.+_.+' inPackage: 'Sandblocks' do: [:method :blocks |
    blocks do: [:b |
        b contents: (b contents copy replaceAll: $_ with: Character space)
            asCamelCase withFirstCharacterDownshifted].
    method wrapEditor.
    method saveTryFixing: false quick: false]