--- a/SmallSense__SmalltalkSyntaxHighlighter.st Wed Feb 08 00:59:25 2017 +0100
+++ b/SmallSense__SmalltalkSyntaxHighlighter.st Fri Feb 10 20:05:38 2017 +0100
@@ -603,10 +603,16 @@
!
rememberVariableElementFor:node from:pos1 to:pos2 assigned:assigned
+ "remember a variable element;
+ chain it into a list of either block- or method variables.
+ This is stupid: must use per-scope chains, as the current impl.
+ often gives confusing output, if variables are redefined in inner scopes..."
+
|name typeSymbol element prev|
name := node name.
typeSymbol := node type.
+
prev := (lastVariableElements at:typeSymbol ifAbsentPut:[Dictionary new]) at:name ifAbsent:[nil].
(prev notNil and:[prev start == pos1]) ifTrue:[
"/ prev assigned:assigned.
@@ -621,6 +627,7 @@
elements add: element.
"Created: / 25-02-2014 / 12:13:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 10-02-2017 / 20:05:28 / cg"
! !
!SmalltalkSyntaxHighlighter class methodsFor:'documentation'!