On 25 Sep 2015, at 08:58, Nicolai Hess <nicolaihess@web.de> wrote:2015-09-24 12:06 GMT+02:00 Andrei Chis <chisvasileandrei@gmail.com>:Hi,Currently SHRBTextStyler does not highlight variables in the playground.This could be added by extending SHRBTextStyler >>#resolveStyleFor: withworkspaceifNotNil: [(workspace hasBindingOf: aVariableNode name)ifTrue: [^ #workspaceVar]].Yes, I tried it already, but I couldn't get it to work.I would like to have some way to add this to the semantic analyser step.If the workspace is defined as a requestore scope, the variable analysisshould work the same way as if we actual "compile" the code.
Still this could cause some problems given how MorphicTextAdapter integrates Rubric.MorphicTextAdapter>>setEditingModeFor:withBehavior: can translate #beForCode from Spec to #beForSmalltalkScripting in Rubric.However for #beForSmalltalkScripting to work the model has to provide methods for managing bindings which MorphicTextAdapter does not.This is really difficult, especially because the actual model is different for Nautilus code panes and of course any spec based text/code model.