You are probably missing an ending brace }. Try to pair the braces properly and you would be good to go.
And by the way, learn to format your code so that simple mistakes like these never occur or get a better text editor in case your current one doesn't support syntax highlighting.