[squeak-dev] The Trunk: Compiler-mt.407.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Aug 4 08:42:01 UTC 2019


Marcel Taeumel uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-mt.407.mcz

==================== Summary ====================

Name: Compiler-mt.407
Author: mt
Time: 4 August 2019, 10:42:01.663314 am
UUID: 5c828155-c416-4d42-8f88-15176ffa33eb
Ancestors: Compiler-mt.406

Prepares syntax highlighting for syntax-error tool: Insert the error message as a comment.

=============== Diff against Compiler-mt.406 ===============

Item was changed:
  ----- Method: Parser>>notify:at: (in category 'error handling') -----
  notify: string at: location
  	cue requestor isNil
  		ifTrue: [| notification |
  			(encoder == self or: [encoder isNil]) ifTrue: [^ self fail  "failure setting up syntax error"].
  			(notification := SyntaxErrorNotification
  					inClass: encoder classEncoding
  					withCode: 
  						(source contents asText
  							copyReplaceFrom: location
  							to: location - 1
+ 							with: (('"', string , ' ->"') asText))
- 							with: ((string , ' ->') asText allBold 
- 								addAttribute: TextColor red; yourself))
  					doitFlag: doitFlag
  					errorMessage: string
  					location: location) signal.
  			notification tryNewSourceIfAvailable]
  		ifFalse: [cue requestor
  					notify: string , ' ->'
  					at: location
  					in: source].
  	^self fail!



More information about the Squeak-dev mailing list