[squeak-dev] The Inbox: ShoutCore-ct.85.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Apr 7 15:21:00 UTC 2021


A new version of ShoutCore was added to project The Inbox:
http://source.squeak.org/inbox/ShoutCore-ct.85.mcz

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

Name: ShoutCore-ct.85
Author: ct
Time: 7 April 2021, 5:21:00.504598 pm
UUID: 555b2e6b-ef80-e842-85ee-aa1276ccddbf
Ancestors: ShoutCore-eem.84

Fixes a present bug that occured when styling a method that contains multiple unary selectors after a cascade. See ShoutTests-ct.34.

=============== Diff against ShoutCore-eem.84 ===============

Item was changed:
  ----- Method: SHParserST80>>parseCascade (in category 'parse') -----
  parseCascade
  	self parseKeyword.
  	[currentTokenFirst == $;] 
  		whileTrue: [
+ 			| oldRangesLength |
  			self scanPast: #cascadeSeparator.
+ 			oldRangesLength := ranges size.
+ 			self parseKeyword.
+ 			(ranges size > (oldRangesLength + 1)
+ 				and: [(ranges at: oldRangesLength + 1) type = #unary])
+ 				ifTrue: [
+ 					ranges removeLast: ranges size - (oldRangesLength + 1).
+ 					self fail ": 'Nothing more expected'"]]!
- 			self parseKeyword]!



More information about the Squeak-dev mailing list