author | Claus Gittinger <cg@exept.de> |
Sat, 26 May 2012 11:36:50 +0200 | |
changeset 2870 | 75f1f73b3bf9 |
parent 2816 | e8b84f6d7462 |
child 2892 | da6e12d0b4e4 |
permissions | -rw-r--r-- |
662 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
1110 | 12 |
"{ Package: 'stx:libcomp' }" |
13 |
||
2373 | 14 |
AbstractSyntaxHighlighter subclass:#SyntaxHighlighter |
15 |
instanceVariableNames:'currentSuperclasses currentSubclasses |
|
16 |
cachedLocalIdentifierEmphasis cachedLocalIdentifierColor |
|
17 |
cachedStringEmphasis cachedStringColor' |
|
662 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'System-Compiler' |
|
21 |
! |
|
22 |
||
23 |
!SyntaxHighlighter class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
||
38 |
||
681 | 39 |
! |
40 |
||
41 |
documentation |
|
42 |
" |
|
43 |
colors a method. |
|
44 |
" |
|
45 |
||
46 |
||
662 | 47 |
! ! |
48 |
||
49 |
!SyntaxHighlighter class methodsFor:'highlighting'! |
|
50 |
||
1527 | 51 |
formatClassDefinition:aString in:aClass |
52 |
"format (recolor) a class definition expression in a given class. |
|
53 |
Return the text containing font changes and color information." |
|
54 |
||
55 |
^ self formatExpression:aString in:aClass |
|
56 |
! |
|
57 |
||
684
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
58 |
formatExpression:aString in:aClass |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
59 |
"format (recolor) an expression in a given class. |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
60 |
Return the text containing font changes and color information." |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
61 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
62 |
|parser tree text endPos| |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
63 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
64 |
aString isNil ifTrue:[^ nil]. |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
65 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
66 |
parser := self for:(ReadStream on:aString string) in:aClass. |
1365 | 67 |
parser ignoreErrors:true. |
68 |
parser ignoreWarnings:true. |
|
684
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
69 |
parser sourceText:(text := aString string asText). |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
70 |
"/ use an array here - this can be changed much faster using #at:put: |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
71 |
text emphasisCollection:(Array new:aString size). |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
72 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
73 |
parser nextToken. |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
74 |
tree := parser expression. |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
75 |
"/ now, convert the emphasis-array to a runArray |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
76 |
text emphasisCollection:(text emphasis asRunArray). |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
77 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
78 |
tree == #Error ifTrue:[ |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
79 |
"/ mhmh - which is better ... |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
80 |
"/ alternative1: color rest after error in red |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
81 |
"/ text |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
82 |
"/ emphasizeFrom:(parser sourceStream position) |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
83 |
"/ to:text size |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
84 |
"/ with:(#color->Color red). |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
85 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
86 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
87 |
"/ alternative2: take original emphasis for rest |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
88 |
|
1371
de4c37ac12fc
code rewritten to be independent of stream zero-base
Claus Gittinger <cg@exept.de>
parents:
1365
diff
changeset
|
89 |
endPos := parser sourceStream position1Based. |
684
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
90 |
endPos >= text size ifTrue:[ |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
91 |
^ text |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
92 |
]. |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
93 |
^ (text copyTo:endPos) , (aString copyFrom:(endPos+1)) |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
94 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
95 |
"/ alternative3: no emphasis for rest. |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
96 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
97 |
"/ ^ text "/ aString |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
98 |
]. |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
99 |
^ text |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
100 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
101 |
" |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
102 |
self |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
103 |
formatExpression:'(1 + 2) max:5' |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
104 |
in:UndefinedObject |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
105 |
" |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
106 |
|
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
107 |
"Modified: / 7.4.1998 / 09:57:19 / cg" |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
108 |
"Created: / 9.4.1998 / 16:57:16 / cg" |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
109 |
! |
dd691ac07f90
added entry to color an expression
Claus Gittinger <cg@exept.de>
parents:
681
diff
changeset
|
110 |
|
662 | 111 |
formatMethod:aString in:aClass |
680
ebc432c71aec
much faster (due to runArray changes.
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
112 |
"format (recolor) a method in a given class. |
ebc432c71aec
much faster (due to runArray changes.
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
113 |
Return the text containing font changes and color information." |
662 | 114 |
|
1550 | 115 |
^ self formatMethod:aString in:aClass using:nil |
116 |
||
117 |
" |
|
118 |
self |
|
119 |
formatMethod:'foo |
|
120 |
^ self bar:''hello''. |
|
121 |
||
122 |
' , (Character doubleQuote asString) , 'some comment' , (Character doubleQuote asString) , ' |
|
123 |
' |
|
124 |
in:UndefinedObject |
|
125 |
" |
|
126 |
||
127 |
"Modified: / 23.10.1998 / 22:48:45 / cg" |
|
128 |
! |
|
129 |
||
130 |
formatMethod:aString in:aClass using:preferencesOrNil |
|
131 |
"format (recolor) a method in a given class. |
|
132 |
Return the text containing font changes and color information." |
|
133 |
||
134 |
|highlighter tree text endPos eColor| |
|
662 | 135 |
|
136 |
aString isNil ifTrue:[^ nil]. |
|
137 |
||
1110 | 138 |
Error handle:[:ex | |
1857 | 139 |
ex signal isHandled ifTrue:[ |
140 |
ex reject. |
|
141 |
]. |
|
2087
42c0f2fe415d
Do not write Warning messages about parse errors
Stefan Vogel <sv@exept.de>
parents:
2070
diff
changeset
|
142 |
(self parseErrorSignal handles:ex) ifFalse:[ |
42c0f2fe415d
Do not write Warning messages about parse errors
Stefan Vogel <sv@exept.de>
parents:
2070
diff
changeset
|
143 |
"Parse error may happen when re-formatting incomplete code while editing" |
2807
48955b6f8874
changed: #formatMethod:in:using:
Claus Gittinger <cg@exept.de>
parents:
2460
diff
changeset
|
144 |
"/ ('SyntaxHighlighter [info]: error during highlight: ' , ex description) infoPrintCR. |
2087
42c0f2fe415d
Do not write Warning messages about parse errors
Stefan Vogel <sv@exept.de>
parents:
2070
diff
changeset
|
145 |
"/ ex suspendedContext fullPrintAll. |
42c0f2fe415d
Do not write Warning messages about parse errors
Stefan Vogel <sv@exept.de>
parents:
2070
diff
changeset
|
146 |
]. |
689 | 147 |
^ aString |
148 |
] do:[ |
|
1550 | 149 |
highlighter := self for:(ReadStream on:aString string) in:aClass. |
150 |
preferencesOrNil notNil ifTrue:[highlighter preferences:preferencesOrNil]. |
|
1857 | 151 |
"/ highlighter ignoreErrors:true. |
1550 | 152 |
highlighter ignoreWarnings:true. |
153 |
highlighter sourceText:(text := aString string asText). |
|
689 | 154 |
"/ use an array here - this can be changed much faster using #at:put: |
155 |
text emphasisCollection:(Array new:aString size). |
|
662 | 156 |
|
1550 | 157 |
tree := highlighter parseMethod. |
689 | 158 |
"/ now, convert the emphasis-array to a runArray |
159 |
text emphasisCollection:(text emphasis asRunArray). |
|
680
ebc432c71aec
much faster (due to runArray changes.
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
160 |
|
689 | 161 |
tree == #Error ifTrue:[ |
889 | 162 |
eColor := UserPreferences current errorColor. |
163 |
eColor notNil ifTrue:[ |
|
164 |
"/ mhmh - which is better ... |
|
165 |
"/ alternative1: color rest after error in red |
|
166 |
text |
|
1550 | 167 |
emphasizeFrom:(highlighter sourceStream position1Based) |
889 | 168 |
to:text size |
169 |
with:(#color->eColor). |
|
170 |
] ifFalse:[ |
|
171 |
"/ alternative2: take original emphasis for rest |
|
680
ebc432c71aec
much faster (due to runArray changes.
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
172 |
|
1550 | 173 |
endPos := highlighter sourceStream position1Based. |
889 | 174 |
endPos >= text size ifTrue:[ |
175 |
^ text |
|
176 |
]. |
|
177 |
^ (text copyTo:endPos) , (aString copyFrom:(endPos+1)) |
|
689 | 178 |
]. |
179 |
"/ alternative3: no emphasis for rest. |
|
678 | 180 |
]. |
689 | 181 |
^ text |
182 |
] |
|
662 | 183 |
" |
184 |
self |
|
185 |
formatMethod:'foo |
|
186 |
^ self bar:''hello''. |
|
187 |
||
188 |
' , (Character doubleQuote asString) , 'some comment' , (Character doubleQuote asString) , ' |
|
189 |
' |
|
190 |
in:UndefinedObject |
|
191 |
" |
|
192 |
||
2807
48955b6f8874
changed: #formatMethod:in:using:
Claus Gittinger <cg@exept.de>
parents:
2460
diff
changeset
|
193 |
"Modified: / 04-02-2012 / 11:53:16 / cg" |
662 | 194 |
! ! |
195 |
||
196 |
!SyntaxHighlighter methodsFor:'initialization'! |
|
197 |
||
198 |
initialize |
|
199 |
super initialize. |
|
200 |
||
990
cd1aa00086fd
dont care to fold constants during syntaxHighlight
Claus Gittinger <cg@exept.de>
parents:
987
diff
changeset
|
201 |
foldConstants := false. |
1636
98afdcdacde8
compilerflags separated into ParserFlags.
Claus Gittinger <cg@exept.de>
parents:
1553
diff
changeset
|
202 |
"/ parserFlags allowDollarInIdentifier:true. |
990
cd1aa00086fd
dont care to fold constants during syntaxHighlight
Claus Gittinger <cg@exept.de>
parents:
987
diff
changeset
|
203 |
|
1526 | 204 |
preferences := UserPreferences current. |
868 | 205 |
|
1526 | 206 |
fullSelectorCheck := preferences fullSelectorCheck. |
662 | 207 |
|
208 |
"Created: / 31.3.1998 / 15:12:55 / cg" |
|
838 | 209 |
"Modified: / 5.1.1980 / 00:44:03 / cg" |
662 | 210 |
! ! |
211 |
||
212 |
!SyntaxHighlighter methodsFor:'syntax detection'! |
|
213 |
||
214 |
markArgumentIdentifierFrom:pos1 to:pos2 |
|
215 |
self |
|
216 |
markFrom:pos1 to:pos2 |
|
1553 | 217 |
withEmphasis:(preferences argumentIdentifierEmphasis) |
218 |
color:(preferences argumentIdentifierColor) |
|
662 | 219 |
|
220 |
"Modified: / 31.3.1998 / 18:01:27 / cg" |
|
221 |
! |
|
222 |
||
2811 | 223 |
markAssignedClassVariableIdentifierFrom:pos1 to:pos2 |
224 |
self |
|
225 |
markFrom:pos1 to:pos2 |
|
226 |
withEmphasis:(preferences classVariableIdentifierEmphasis) |
|
227 |
color:(preferences sideEffectAssignmentColor) |
|
228 |
ifNil:(preferences classVariableIdentifierColor) |
|
229 |
backgroundColor:(preferences sideEffectAssignmentBackgroundColor) |
|
230 |
||
231 |
"Created: / 13-02-2012 / 11:49:59 / cg" |
|
232 |
! |
|
233 |
||
234 |
markAssignedGlobalIdentifierFrom:pos1 to:pos2 |
|
235 |
self |
|
236 |
markFrom:pos1 to:pos2 |
|
237 |
withEmphasis:(preferences globalIdentifierEmphasis) |
|
238 |
color:(preferences sideEffectAssignmentColor) |
|
239 |
ifNil:(preferences globalIdentifierColor) |
|
240 |
backgroundColor:(preferences sideEffectAssignmentBackgroundColor) |
|
241 |
||
242 |
"Modified: / 31-03-1998 / 18:02:14 / cg" |
|
243 |
"Created: / 13-02-2012 / 11:44:33 / cg" |
|
244 |
! |
|
245 |
||
246 |
markAssignedInstVarIdentifierFrom:pos1 to:pos2 |
|
247 |
self |
|
248 |
markFrom:pos1 to:pos2 |
|
249 |
withEmphasis:(preferences instVarIdentifierEmphasis) |
|
250 |
color:(preferences sideEffectAssignmentColor) |
|
251 |
ifNil:(preferences instVarIdentifierColor) |
|
252 |
backgroundColor:(preferences sideEffectAssignmentBackgroundColor) |
|
253 |
||
254 |
"Created: / 13-02-2012 / 11:50:19 / cg" |
|
255 |
! |
|
256 |
||
257 |
markAssignedPoolVariableIdentifierFrom:pos1 to:pos2 |
|
258 |
self |
|
259 |
markFrom:pos1 to:pos2 |
|
260 |
withEmphasis:(preferences poolVariableIdentifierEmphasis) |
|
261 |
color:(preferences sideEffectAssignmentColor) |
|
262 |
ifNil:(preferences poolVariableIdentifierColor) |
|
263 |
backgroundColor:(preferences sideEffectAssignmentBackgroundColor) |
|
264 |
||
265 |
"Created: / 13-02-2012 / 11:49:14 / cg" |
|
266 |
! |
|
267 |
||
268 |
markAssignedVariable:v from:pos to:endPos |
|
269 |
"support for syntaxColoring" |
|
270 |
||
271 |
|type| |
|
272 |
||
273 |
type := v type. |
|
274 |
(type == #BlockArg |
|
275 |
or:[ type == #MethodArg |
|
276 |
or:[ type == #BlockVariable |
|
277 |
or:[ type == #MethodVariable]]]) ifTrue:[ |
|
278 |
self markVariable:v from:pos to:endPos. |
|
279 |
^ self |
|
280 |
]. |
|
281 |
(type == #GlobalVariable) ifTrue:[ |
|
282 |
self markAssignedGlobalIdentifierFrom:pos to:endPos. |
|
283 |
^ self |
|
284 |
]. |
|
285 |
(type == #PoolVariable) ifTrue:[ |
|
286 |
self markAssignedPoolVariableIdentifierFrom:pos to:endPos. |
|
287 |
^ self |
|
288 |
]. |
|
289 |
(type == #ClassVariable) ifTrue:[ |
|
290 |
self markAssignedClassVariableIdentifierFrom:pos to:endPos. |
|
291 |
^ self |
|
292 |
]. |
|
293 |
(type == #InstanceVariable) ifTrue:[ |
|
294 |
self markAssignedInstVarIdentifierFrom:pos to:endPos. |
|
295 |
^ self |
|
296 |
]. |
|
297 |
||
298 |
self markAssignedIdentifierFrom:pos to:endPos. |
|
299 |
||
300 |
"Created: / 13-02-2012 / 11:42:23 / cg" |
|
301 |
! |
|
302 |
||
884 | 303 |
markBadIdentifierFrom:pos1 to:pos2 |
304 |
self |
|
305 |
markFrom:pos1 to:pos2 |
|
1553 | 306 |
withEmphasis:(preferences badIdentifierEmphasis) |
307 |
color:(preferences badIdentifierColor) |
|
884 | 308 |
! |
309 |
||
2055 | 310 |
markBlockFrom:pos1 to:pos2 |
2228 | 311 |
"an experiment (which does not look too good, after all): |
312 |
the deeper the nesting of the block, the darker the background color." |
|
313 |
||
2055 | 314 |
"/ |level color| |
315 |
"/ |
|
316 |
"/ level := currentBlock isNil ifTrue:[1] ifFalse:[currentBlock nestingLevel+1]. |
|
2228 | 317 |
"/ level > 5 ifTrue:[ |
318 |
"/ color := Color yellow darkened. |
|
319 |
"/ ] ifFalse:[ |
|
320 |
"/ color := { |
|
321 |
"/ Color yellow lightened lightened. |
|
322 |
"/ Color yellow lightened . |
|
323 |
"/ Color yellow . |
|
324 |
"/ Color yellow slightlyDarkened . |
|
325 |
"/ Color yellow darkened . |
|
326 |
"/ } at:level. |
|
327 |
"/ ]. |
|
2055 | 328 |
"/ self |
329 |
"/ markFrom:pos1 to:pos2 |
|
2228 | 330 |
"/ withAddedEmphasis:(#backgroundColor->color). |
2055 | 331 |
! |
332 |
||
662 | 333 |
markBooleanConstantFrom:pos1 to:pos2 |
334 |
self |
|
335 |
markFrom:pos1 to:pos2 |
|
1553 | 336 |
withEmphasis:(preferences booleanConstantEmphasis) |
337 |
color:(preferences booleanConstantColor) |
|
662 | 338 |
|
339 |
"Created: / 31.3.1998 / 18:09:01 / cg" |
|
665 | 340 |
"Modified: / 31.3.1998 / 19:36:44 / cg" |
662 | 341 |
! |
342 |
||
673 | 343 |
markBracketAt:pos |
2070 | 344 |
|level colors clr em| |
345 |
||
346 |
preferences emphasizeParenthesisLevel ifFalse:[ |
|
347 |
self |
|
348 |
markFrom:pos to:pos |
|
349 |
withEmphasis:(preferences bracketEmphasis) |
|
350 |
color:(preferences bracketColor). |
|
351 |
||
352 |
^ self |
|
353 |
]. |
|
354 |
||
355 |
level := currentBlock isNil ifTrue:[1] ifFalse:[currentBlock nestingLevel + 2]. |
|
356 |
(sourceText at:pos) = $] ifTrue:[ |
|
357 |
level := level - 1. |
|
358 |
]. |
|
359 |
||
360 |
colors := Array |
|
361 |
with:(Color black) |
|
362 |
with:(Color blue) |
|
363 |
with:(Color green blendWith:(Color grey:30)) |
|
364 |
with:(Color red blendWith:(Color grey:30)) |
|
365 |
with:(Color yellow darkened). |
|
366 |
||
367 |
clr := colors at:((level-1) \\ colors size + 1). |
|
368 |
em := #normal. |
|
369 |
level > 1 ifTrue:[ |
|
370 |
em := #bold. |
|
371 |
]. |
|
673 | 372 |
self |
373 |
markFrom:pos to:pos |
|
2070 | 374 |
withEmphasis:em |
375 |
color:clr |
|
673 | 376 |
! |
377 |
||
870 | 378 |
markClassVariableIdentifierFrom:pos1 to:pos2 |
379 |
self |
|
380 |
markFrom:pos1 to:pos2 |
|
1553 | 381 |
withEmphasis:(preferences classVariableIdentifierEmphasis) |
382 |
color:(preferences classVariableIdentifierColor) |
|
870 | 383 |
|
384 |
"Modified: / 31.3.1998 / 18:02:14 / cg" |
|
385 |
! |
|
386 |
||
662 | 387 |
markCommentFrom:pos1 to:pos2 |
388 |
self |
|
389 |
markFrom:pos1 to:pos2 |
|
1553 | 390 |
withEmphasis:(preferences commentEmphasis) |
391 |
color:(preferences commentColor) |
|
662 | 392 |
|
1550 | 393 |
" |
394 |
UserPreferences current commentEmphasis |
|
395 |
" |
|
396 |
"Modified: / 31.3.1998 / 18:01:55 / cg" |
|
662 | 397 |
! |
398 |
||
399 |
markConstantFrom:pos1 to:pos2 |
|
400 |
self |
|
401 |
markFrom:pos1 to:pos2 |
|
1553 | 402 |
withEmphasis:(preferences constantEmphasis) |
403 |
color:(preferences constantColor) |
|
662 | 404 |
|
405 |
"Modified: / 31.3.1998 / 18:01:44 / cg" |
|
406 |
"Created: / 31.3.1998 / 18:09:22 / cg" |
|
407 |
! |
|
408 |
||
822
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
409 |
markGlobalClassIdentifierFrom:pos1 to:pos2 |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
410 |
self |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
411 |
markFrom:pos1 to:pos2 |
1553 | 412 |
withEmphasis:(preferences globalClassIdentifierEmphasis) |
413 |
color:(preferences globalClassIdentifierColor) |
|
822
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
414 |
|
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
415 |
"Modified: / 31.3.1998 / 18:02:14 / cg" |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
416 |
"Created: / 4.3.1999 / 12:53:02 / cg" |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
417 |
! |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
418 |
|
662 | 419 |
markGlobalIdentifierFrom:pos1 to:pos2 |
420 |
self |
|
421 |
markFrom:pos1 to:pos2 |
|
1553 | 422 |
withEmphasis:(preferences globalIdentifierEmphasis) |
423 |
color:(preferences globalIdentifierColor) |
|
662 | 424 |
|
425 |
"Modified: / 31.3.1998 / 18:02:14 / cg" |
|
426 |
! |
|
427 |
||
428 |
markHereFrom:pos1 to:pos2 |
|
429 |
self |
|
430 |
markFrom:pos1 to:pos2 |
|
1553 | 431 |
withEmphasis:(preferences hereEmphasis) |
432 |
color:(preferences hereColor) |
|
662 | 433 |
|
434 |
"Modified: / 31.3.1998 / 18:02:25 / cg" |
|
435 |
! |
|
436 |
||
437 |
markIdentifierFrom:pos1 to:pos2 |
|
438 |
self |
|
439 |
markFrom:pos1 to:pos2 |
|
1553 | 440 |
withEmphasis:(preferences identifierEmphasis) |
441 |
color:(preferences identifierColor) |
|
662 | 442 |
|
443 |
"Modified: / 31.3.1998 / 18:02:39 / cg" |
|
444 |
"Created: / 31.3.1998 / 18:04:56 / cg" |
|
445 |
! |
|
446 |
||
686 | 447 |
markInstVarIdentifierFrom:pos1 to:pos2 |
448 |
self |
|
449 |
markFrom:pos1 to:pos2 |
|
1553 | 450 |
withEmphasis:(preferences instVarIdentifierEmphasis) |
451 |
color:(preferences instVarIdentifierColor) |
|
686 | 452 |
|
453 |
"Created: / 16.4.1998 / 18:35:40 / cg" |
|
454 |
"Modified: / 16.4.1998 / 18:37:30 / cg" |
|
455 |
! |
|
456 |
||
662 | 457 |
markLocalIdentifierFrom:pos1 to:pos2 |
1802 | 458 |
cachedLocalIdentifierEmphasis isNil ifTrue:[ |
459 |
cachedLocalIdentifierEmphasis := preferences localIdentifierEmphasis. |
|
460 |
cachedLocalIdentifierColor := preferences localIdentifierColor. |
|
461 |
]. |
|
662 | 462 |
self |
463 |
markFrom:pos1 to:pos2 |
|
1802 | 464 |
withEmphasis:cachedLocalIdentifierEmphasis |
465 |
color:cachedLocalIdentifierColor |
|
662 | 466 |
|
467 |
"Modified: / 31.3.1998 / 18:02:39 / cg" |
|
468 |
! |
|
469 |
||
470 |
markMethodSelectorFrom:pos1 to:pos2 |
|
471 |
self |
|
472 |
markFrom:pos1 to:pos2 |
|
1553 | 473 |
withEmphasis:(preferences methodSelectorEmphasis) |
474 |
color:(preferences methodSelectorColor) |
|
662 | 475 |
|
476 |
"Modified: / 31.3.1998 / 18:02:52 / cg" |
|
477 |
! |
|
478 |
||
1684 | 479 |
markNumberConstantFrom:pos1 to:pos2 |
480 |
self |
|
481 |
markFrom:pos1 to:pos2 |
|
482 |
withEmphasis:(preferences numberConstantEmphasis) |
|
483 |
color:(preferences numberConstantColor) |
|
484 |
||
485 |
"Modified: / 31.3.1998 / 18:01:44 / cg" |
|
486 |
"Created: / 31.3.1998 / 18:09:22 / cg" |
|
487 |
! |
|
488 |
||
1640
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
489 |
markParenthesisAt:pos |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
490 |
|colors clr em| |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
491 |
|
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
492 |
preferences emphasizeParenthesisLevel ifFalse:[^ self]. |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
493 |
|
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
494 |
colors := Array |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
495 |
with:(Color black) |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
496 |
with:(Color blue) |
1757 | 497 |
with:(Color green blendWith:(Color grey:30)) |
498 |
with:(Color red blendWith:(Color grey:30)) |
|
1640
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
499 |
with:(Color yellow darkened). |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
500 |
|
1757 | 501 |
clr := colors at:((parenthesisLevel-1) \\ colors size + 1). |
1640
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
502 |
em := #normal. |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
503 |
parenthesisLevel > 1 ifTrue:[ |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
504 |
em := #bold. |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
505 |
]. |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
506 |
self |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
507 |
markFrom:pos to:pos |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
508 |
withEmphasis:em |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
509 |
color:clr |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
510 |
! |
261459ccc704
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
511 |
|
1553 | 512 |
markPoolVariableIdentifierFrom:pos1 to:pos2 |
513 |
self |
|
514 |
markFrom:pos1 to:pos2 |
|
515 |
withEmphasis:(preferences poolVariableIdentifierEmphasis) |
|
516 |
color:(preferences poolVariableIdentifierColor) |
|
517 |
! |
|
518 |
||
838 | 519 |
markReturnAt:pos |
520 |
self |
|
521 |
markFrom:pos to:pos |
|
1553 | 522 |
withEmphasis:(preferences returnEmphasis) |
523 |
color:(preferences returnColor) |
|
838 | 524 |
|
525 |
"Modified: / 31.3.1998 / 19:36:44 / cg" |
|
526 |
"Created: / 5.1.1980 / 00:44:27 / cg" |
|
527 |
! |
|
528 |
||
863 | 529 |
markSelector:selectorString from:pos1 to:pos2 receiverNode:aReceiverNode |
1498
9b4366551a2a
speed up symbol checking and generation
Stefan Vogel <sv@exept.de>
parents:
1396
diff
changeset
|
530 |
|fg selectorSymbol check ok rec em| |
863 | 531 |
|
532 |
"/ uncommenting the code below |
|
533 |
"/ will suppress highlighting of common selectors ... |
|
534 |
"/ |
|
535 |
"/ (#( |
|
536 |
"/ 'ifTrue:' |
|
537 |
"/ 'ifFalse:' |
|
538 |
"/ 'not' |
|
539 |
"/ 'and:' |
|
540 |
"/ 'or:' |
|
541 |
"/ '=' |
|
542 |
"/ '==' |
|
543 |
"/ '~=' |
|
544 |
"/ '~~' |
|
545 |
"/ ) includes:sel) ifTrue:[ |
|
546 |
"/ ^ self |
|
547 |
"/ ]. |
|
548 |
||
1526 | 549 |
fg := preferences selectorColor. |
550 |
em := preferences selectorEmphasis. |
|
1498
9b4366551a2a
speed up symbol checking and generation
Stefan Vogel <sv@exept.de>
parents:
1396
diff
changeset
|
551 |
selectorSymbol := selectorString asSymbolIfInterned. |
9b4366551a2a
speed up symbol checking and generation
Stefan Vogel <sv@exept.de>
parents:
1396
diff
changeset
|
552 |
selectorSymbol isNil ifTrue:[ |
1905 | 553 |
em := preferences unimplementedSelectorEmphasis. |
554 |
fg := preferences unimplementedSelectorColor. |
|
1498
9b4366551a2a
speed up symbol checking and generation
Stefan Vogel <sv@exept.de>
parents:
1396
diff
changeset
|
555 |
] ifFalse:[ |
1905 | 556 |
ok := true. |
557 |
||
863 | 558 |
fullSelectorCheck == true ifTrue:[ |
559 |
||
1498
9b4366551a2a
speed up symbol checking and generation
Stefan Vogel <sv@exept.de>
parents:
1396
diff
changeset
|
560 |
check := [:cls | (cls includesSelector:selectorSymbol) |
9b4366551a2a
speed up symbol checking and generation
Stefan Vogel <sv@exept.de>
parents:
1396
diff
changeset
|
561 |
or:[cls class includesSelector:selectorSymbol]]. |
863 | 562 |
|
563 |
ok := false. |
|
564 |
||
565 |
"/ limit search if possible |
|
566 |
(classToCompileFor notNil |
|
567 |
and:[aReceiverNode isSelf or:[aReceiverNode isSuper]]) ifTrue:[ |
|
568 |
currentSuperclasses isNil ifTrue:[ |
|
569 |
currentSuperclasses := classToCompileFor withAllSuperclasses. |
|
570 |
]. |
|
571 |
ok := currentSuperclasses contains:check. |
|
572 |
(ok not and:[aReceiverNode isSelf]) ifTrue:[ |
|
573 |
currentSubclasses isNil ifTrue:[ |
|
574 |
currentSubclasses := classToCompileFor allSubclasses. |
|
575 |
]. |
|
576 |
ok := currentSubclasses contains:check. |
|
577 |
]. |
|
578 |
] ifFalse:[ |
|
579 |
aReceiverNode isConstant ifTrue:[ |
|
580 |
ok := aReceiverNode evaluate class withAllSuperclasses contains:check. |
|
581 |
] ifFalse:[ |
|
582 |
(aReceiverNode isGlobal |
|
583 |
and:[(rec := aReceiverNode evaluate) isBehavior]) ifTrue:[ |
|
584 |
ok := rec class withAllSuperclasses contains:check. |
|
585 |
] ifFalse:[ |
|
586 |
ok := Smalltalk allClasses contains:check |
|
587 |
] |
|
588 |
] |
|
589 |
]. |
|
1905 | 590 |
]. |
591 |
ok ifFalse:[ |
|
592 |
em := preferences unimplementedSelectorEmphasis. |
|
593 |
fg := preferences unimplementedSelectorColor. |
|
594 |
] ifTrue:[ |
|
595 |
(self controlFlowSelectors includesIdentical:selectorSymbol) ifTrue:[ |
|
596 |
em := preferences controlFlowSelectorEmphasis. |
|
2816
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
597 |
fg := preferences controlFlowSelectorColor |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
598 |
] ifFalse:[ |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
599 |
(self collectionEnumerationSelectors includesIdentical:selectorSymbol) ifTrue:[ |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
600 |
em := preferences collectionEnumerationSelectorEmphasis. |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
601 |
fg := preferences collectionEnumerationSelectorColor |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
602 |
]. |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
603 |
]. |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
604 |
em isNil ifTrue:[ |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
605 |
em := preferences selectorEmphasis |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
606 |
]. |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
607 |
fg isNil ifTrue:[ |
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
608 |
fg := preferences selectorColor |
1905 | 609 |
]. |
610 |
]. |
|
863 | 611 |
]. |
612 |
self |
|
613 |
markFrom:pos1 to:pos2 |
|
1553 | 614 |
withEmphasis:em |
615 |
color:fg |
|
863 | 616 |
|
2816
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
617 |
"Modified: / 14-02-2012 / 16:03:52 / cg" |
863 | 618 |
! |
619 |
||
662 | 620 |
markSelfFrom:pos1 to:pos2 |
621 |
self |
|
622 |
markFrom:pos1 to:pos2 |
|
1553 | 623 |
withEmphasis:(preferences selfEmphasis) |
624 |
color:(preferences selfColor) |
|
662 | 625 |
|
626 |
"Modified: / 31.3.1998 / 18:03:10 / cg" |
|
627 |
! |
|
628 |
||
629 |
markStringFrom:pos1 to:pos2 |
|
1802 | 630 |
cachedStringEmphasis isNil ifTrue:[ |
631 |
cachedStringEmphasis := preferences stringEmphasis. |
|
632 |
cachedStringColor := preferences stringColor. |
|
633 |
]. |
|
662 | 634 |
self |
635 |
markFrom:pos1 to:pos2 |
|
1802 | 636 |
withEmphasis:cachedStringEmphasis |
637 |
color:cachedStringColor |
|
662 | 638 |
|
639 |
"Modified: / 31.3.1998 / 18:03:18 / cg" |
|
640 |
! |
|
641 |
||
642 |
markSuperFrom:pos1 to:pos2 |
|
643 |
self |
|
644 |
markFrom:pos1 to:pos2 |
|
1553 | 645 |
withEmphasis:(preferences superEmphasis) |
646 |
color:(preferences superColor) |
|
662 | 647 |
|
648 |
"Modified: / 31.3.1998 / 18:03:26 / cg" |
|
649 |
! |
|
650 |
||
672 | 651 |
markSymbolFrom:pos1 to:pos2 |
652 |
self |
|
653 |
markFrom:pos1 to:pos2 |
|
1553 | 654 |
withEmphasis:(preferences symbolEmphasis) |
655 |
color:(preferences symbolColor) |
|
672 | 656 |
|
657 |
"Created: / 1.4.1998 / 12:56:47 / cg" |
|
658 |
"Modified: / 1.4.1998 / 12:58:00 / cg" |
|
659 |
! |
|
660 |
||
662 | 661 |
markThisContextFrom:pos1 to:pos2 |
662 |
self |
|
663 |
markFrom:pos1 to:pos2 |
|
1553 | 664 |
withEmphasis:(preferences thisContextEmphasis) |
665 |
color:(preferences thisContextColor) |
|
662 | 666 |
|
667 |
"Modified: / 31.3.1998 / 18:03:36 / cg" |
|
665 | 668 |
! |
669 |
||
670 |
markUnknownIdentifierFrom:pos1 to:pos2 |
|
671 |
self |
|
672 |
markFrom:pos1 to:pos2 |
|
1553 | 673 |
withEmphasis:(preferences unknownIdentifierEmphasis) |
674 |
color:(preferences unknownIdentifierColor) |
|
665 | 675 |
|
676 |
"Created: / 31.3.1998 / 19:09:26 / cg" |
|
677 |
"Modified: / 31.3.1998 / 19:10:30 / cg" |
|
686 | 678 |
! |
679 |
||
680 |
markVariable:v from:pos to:endPos |
|
681 |
"support for syntaxColoring" |
|
682 |
||
823 | 683 |
|type globalValue nameSym| |
686 | 684 |
|
685 |
type := v type. |
|
686 |
(type == #BlockArg |
|
687 |
or:[type == #MethodArg]) ifTrue:[ |
|
688 |
self markArgumentIdentifierFrom:pos to:endPos. |
|
689 |
^ self |
|
690 |
]. |
|
691 |
(type == #BlockVariable |
|
692 |
or:[type == #MethodVariable]) ifTrue:[ |
|
693 |
self markLocalIdentifierFrom:pos to:endPos. |
|
694 |
^ self |
|
695 |
]. |
|
696 |
(type == #GlobalVariable) ifTrue:[ |
|
823 | 697 |
nameSym := v name asSymbolIfInterned. |
698 |
nameSym notNil ifTrue:[ |
|
699 |
globalValue := Smalltalk at:nameSym ifAbsent:nil. |
|
700 |
]. |
|
822
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
701 |
globalValue isBehavior ifTrue:[ |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
702 |
self markGlobalClassIdentifierFrom:pos to:endPos. |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
703 |
] ifFalse:[ |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
704 |
self markGlobalIdentifierFrom:pos to:endPos. |
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
705 |
]. |
686 | 706 |
^ self |
707 |
]. |
|
1553 | 708 |
(type == #PoolVariable) ifTrue:[ |
709 |
self markPoolVariableIdentifierFrom:pos to:endPos. |
|
710 |
^ self |
|
711 |
]. |
|
870 | 712 |
(type == #ClassVariable) ifTrue:[ |
713 |
self markClassVariableIdentifierFrom:pos to:endPos. |
|
714 |
^ self |
|
715 |
]. |
|
686 | 716 |
(type == #InstanceVariable) ifTrue:[ |
717 |
self markInstVarIdentifierFrom:pos to:endPos. |
|
718 |
^ self |
|
719 |
]. |
|
720 |
||
721 |
self markIdentifierFrom:pos to:endPos. |
|
722 |
||
723 |
"Created: / 16.4.1998 / 18:49:34 / cg" |
|
822
a773bb72cbd6
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
794
diff
changeset
|
724 |
"Modified: / 4.3.1999 / 12:56:13 / cg" |
662 | 725 |
! ! |
726 |
||
727 |
!SyntaxHighlighter class methodsFor:'documentation'! |
|
728 |
||
729 |
version |
|
2816
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
730 |
^ '$Header: /cvs/stx/stx/libcomp/SyntaxHighlighter.st,v 1.66 2012-02-14 15:05:54 cg Exp $' |
2228 | 731 |
! |
732 |
||
733 |
version_CVS |
|
2816
e8b84f6d7462
changed: #markSelector:from:to:receiverNode:
Claus Gittinger <cg@exept.de>
parents:
2811
diff
changeset
|
734 |
^ '$Header: /cvs/stx/stx/libcomp/SyntaxHighlighter.st,v 1.66 2012-02-14 15:05:54 cg Exp $' |
662 | 735 |
! ! |