Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin.moutte.etu committed Aug 10, 2024
1 parent 8626529 commit c27edcd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Microdown/MicAnnotationBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ MicAnnotationBlock class >> openingDelimiter [
{ #category : 'parsing' }
MicAnnotationBlock class >> parse: delimiter stream: aTokenStream for: aParser [

| bodystring arguments tag extensionClass key |
| bodystring arguments tag extensionClass |
bodystring := delimiter undelimitedSubstring.
arguments := MicArgumentList
split: bodystring
Expand All @@ -53,8 +53,11 @@ MicAnnotationBlock class >> parse: delimiter stream: aTokenStream for: aParser [

extensionClass := self extensionClassFor: tag.

key := arguments justTheArguments keyAtIndex: 1.
(arguments at: key) ifNil: [ arguments at: extensionClass key put: key ].
arguments justTheArguments ifNotEmpty: [ | key |
key := arguments justTheArguments keyAtIndex: 1.
(arguments at: key) ifNil: [ arguments at: extensionClass key put: key ]].



^ extensionClass new
bodyString: bodystring;
Expand Down

0 comments on commit c27edcd

Please sign in to comment.