2016-08-12 20:30 GMT+02:00 Dale Henrichs <dale.henrichs@gemtalksystems.com>:
`'|' expected` is not the error message I would expect when the message pattern is missing from a method and I try to accept in browser:
| text | text '|' expected ->:= self requestPassword ifTrue: [ UIManager default requestPassword: self prompt ] ifFalse: [ UIManager default request: self prompt initialAnswer: self template ]. ^ (text isNil or: [ text isEmpty ]) ifTrue: [ nil ] ifFalse: [ text ]
The highlighter was also confused turning red at the `->` instead at the very beginning of the method ...
yeah, this is a funny one. I onced debugged the parser to find out why that's happening. Can you spot why this is a valid method : | text | | ^ text :)
Dale