Skip to content

Commit

Permalink
Merge pull request #17 from moosetechnology/fix-multivalue-with-refer…
Browse files Browse the repository at this point in the history
…ences

Fix multi value can be composed of entities and references
  • Loading branch information
badetitou authored Jan 25, 2021
2 parents 7cf078c + 8d650e2 commit 5707bb0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Fame-ImportExport/FMJSONParser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ FMJSONParser >> Entity [

{ #category : #tokens }
FMJSONParser >> MultiEntity [
self tMultiOPEN ifFalse: [ ^ self backtrack: self position ].
[ self Entity. self incrementProgressBar. self tPropertySeparator ] whileTrue.
self tMultiCLOSE ifFalse: [ ^ self syntaxError ].
self tMultiOPEN
ifFalse: [ ^ self backtrack: self position ].
[ self Entity or: [ self Reference or: [ self Reference2 ] ].
self incrementProgressBar.
self tPropertySeparator ] whileTrue.
self tMultiCLOSE
ifFalse: [ ^ self syntaxError ].
^ true
]

Expand Down

0 comments on commit 5707bb0

Please sign in to comment.