pharo-project / pharo

Pharo is a dynamic reflective pure object-oriented language supporting live programming inspired by Smalltalk.
http://pharo.org
Other
1.17k stars 349 forks source link

Why SHRBTextStyler has class instance variables? #16111

Open Ducasse opened 5 months ago

Ducasse commented 5 months ago

Hi

I do not get why formatIncompleteIdentifiers is a class instance variable?

jordanmontt commented 4 months ago

I think this is because that variable is used in the settings browser.

settingsOn: aBuilder
    <systemsettings>

    (aBuilder setting: #formatIncompleteIdentifiers)
        target: self;
        default: false;
        order: 1;
        label: 'Format Incomplete Identifiers';
        parentName: #'Syntax Highlighting';
        description: 'If the code highlighter tryies to format incomplete identifiers and selectors or not. This is not recommended for big images, as it traverse all the image to get the information'