Nicolas Cellier uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-nice.124.mcz==================== Summary ====================
Name: Compiler-nice.124
Author: nice
Time: 25 February 2010, 2:15:08.187 am
UUID: 06c8a9e4-1a69-b04b-88d5-539160553a1d
Ancestors: Compiler-nice.123
Use a Text emphasizing error message in bold red rather than a String in SyntaxErrorNotification.
Maybe this would find a better place in the handling of notification, but this change was easier.
=============== Diff against Compiler-nice.123 ===============
Item was changed:
----- Method: Parser>>notify:at: (in category 'error handling') -----
notify: string at: location
requestor isNil
ifTrue: [(encoder == self or: [encoder isNil]) ifTrue: [^ self fail "failure setting up syntax error"].
SyntaxErrorNotification
inClass: encoder classEncoding
category: category
withCode:
+ (source contents asText
- (source contents
copyReplaceFrom: location
to: location - 1
+ with: ((string , ' ->') asText allBold
+ addAttribute: TextColor red; yourself))
- with: string , ' ->')
doitFlag: doitFlag
errorMessage: string
location: location]
ifFalse: [requestor
notify: string , ' ->'
at: location
in: source].
^self fail!