File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/GToolkit-Pharo-Coder-Method Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,16 @@ GtSmalltalkSourceCoder class >> doubleClickClassifier: anObject [
23
23
24
24
{ #category : #initialization }
25
25
GtSmalltalkSourceCoder class >> initialize [
26
- WordMovementClassifier := BrTextEditorModel smalltalkWordClassifier.
27
- DoubleClickClassifier := BrTextEditorModel smalltalkWordClassifier
26
+ WordMovementClassifier := self smalltalkWordClassifier.
27
+ DoubleClickClassifier := self smalltalkWordClassifier
28
+ ]
29
+
30
+ { #category : #private }
31
+ GtSmalltalkSourceCoder class >> smalltalkWordClassifier [
32
+ ^ [ :c1 :c2 |
33
+ c1 isSeparator ~= c2 isSeparator
34
+ or : [ ((c1 isAlphaNumeric | (c1 = $_)) not and : [ c2 isAlphaNumeric | (c2 = $_) ])
35
+ or : [ c1 isAlphaNumeric | (c1 = $_) and : [ c2 tokenish not ] ] ] ]
28
36
]
29
37
30
38
{ #category : #accessing }
You can’t perform that action at this time.
0 commit comments