using pattern matching for "@{...}" and "++..."