The Inbox: ShoutCore-ct.85.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: ShoutCore-ct.85.mcz

commits-2
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]!