added handling for triple-curly syntax