Error: expected declaration before '}' token

Im getting the above error with this code and i know its with the formatting just cant figure it out! Any help would be appreciated!

#include "pitches.h"
#include <SoftwareSerial.h>
#define NO_SOUND 0

int melody[] = {
  NOTE_B4, NOTE_B5, NOTE_FS5, NOTE_DS5, NOTE_B5, NOTE_FS5, NOTE_DS5, NOTE_C5,
  NOTE_C6, NOTE_G5, NOTE_E5, NOTE_C6, NOTE_G5, NOTE_E5, NOTE_B4, NOTE_B5,
  NOTE_FS5, NOTE_DS5, NOTE_B5, NOTE_FS5, NOTE_DS5, NOTE_DS5, NOTE_E5, NOTE_F5,
  NOTE_F5, NOTE_FS5, NOTE_G5, NOTE_G5, NOTE_GS5, NOTE_A5, NOTE_B5, NO_SOUND
};

int noteDurations[] = {
  16, 16, 16, 16, 16, 16, 8, 16, 16, 16, 16, 16, 16, 8, 16, 16, 16, 16, 16, 16, 8, 32, 32, 16, 32, 32, 16, 32, 32, 16, 8,
};
int pace = 1450; // change pace of music("speedy")

SoftwareSerial mySerial(7, 10);
const int analogInPin = A0;  // Analog input pin that the potentiometer is attached to
const int ledPin = 13;                 // LED connected to digital pin 13

int sensorValue = 0;        // value read from the sensor

void setup()
{
  // initialize serial communications at 9600 bps:
  Serial.begin(9600);
  mySerial.begin(9600);
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
  for (int Note = 0; Note < 54; Note++) { //counter of Notes (54 limit the array)
    int duration = pace / noteDurations[Note]; //Adjust duration with the pace of music
    tone(8, melody[Note], duration); //Play note

    // to distinguish the notes, set a minimum time between them.
    delay(duration * 1.2);
  }
}

void loop()
{
  // read the analog in value:
  sensorValue = analogRead(analogInPin);
  // determine alarm status
  if (sensorValue >= 1000)
  {
    digitalWrite(ledPin, HIGH);
    digitalWrite(8, HIGH);
  }
  else
  {
    digitalWrite(ledPin, LOW);    // sets the LED off
    digitalWrite(8, LOW);
  }
  // print the results to the serial monitor:
  Serial.print("sensor = " );
  Serial.println(sensorValue);

  // wait 10 milliseconds before the next loop
  // for the analog-to-digital converter to settle
  // after the last reading:
  delay(100);
  };[b]
}[/b]

The error is in bold in at the very bottom of the code

};[b]
}[/b]

What?

I was trying to bold the error but i realized this doesnt bold code. This is the actual code:

#include "pitches.h"
#include <SoftwareSerial.h>
#define NO_SOUND 0

int melody[] = {
  NOTE_B4, NOTE_B5, NOTE_FS5, NOTE_DS5, NOTE_B5, NOTE_FS5, NOTE_DS5, NOTE_C5,
  NOTE_C6, NOTE_G5, NOTE_E5, NOTE_C6, NOTE_G5, NOTE_E5, NOTE_B4, NOTE_B5,
  NOTE_FS5, NOTE_DS5, NOTE_B5, NOTE_FS5, NOTE_DS5, NOTE_DS5, NOTE_E5, NOTE_F5,
  NOTE_F5, NOTE_FS5, NOTE_G5, NOTE_G5, NOTE_GS5, NOTE_A5, NOTE_B5, NO_SOUND
};

int noteDurations[] = {
  16, 16, 16, 16, 16, 16, 8, 16, 16, 16, 16, 16, 16, 8, 16, 16, 16, 16, 16, 16, 8, 32, 32, 16, 32, 32, 16, 32, 32, 16, 8,
};
int pace = 1450; // change pace of music("speedy")

SoftwareSerial mySerial(7, 10);
const int analogInPin = A0;  // Analog input pin that the potentiometer is attached to
const int ledPin = 13;                 // LED connected to digital pin 13

int sensorValue = 0;        // value read from the sensor

void setup()
{
  // initialize serial communications at 9600 bps:
  Serial.begin(9600);
  mySerial.begin(9600);
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
  for (int Note = 0; Note < 54; Note++) { //counter of Notes (54 limit the array)
    int duration = pace / noteDurations[Note]; //Adjust duration with the pace of music
    tone(8, melody[Note], duration); //Play note

    // to distinguish the notes, set a minimum time between them.
    delay(duration * 1.2);
  }
}

void loop()
{
  // read the analog in value:
  sensorValue = analogRead(analogInPin);
  // determine alarm status
  if (sensorValue >= 1000)
  {
    digitalWrite(ledPin, HIGH);
    digitalWrite(8, HIGH);
  }
  else
  {
    digitalWrite(ledPin, LOW);    // sets the LED off
    digitalWrite(8, LOW);
  }
  // print the results to the serial monitor:
  Serial.print("sensor = " );
  Serial.println(sensorValue);

  // wait 10 milliseconds before the next loop
  // for the analog-to-digital converter to settle
  // after the last reading:
  delay(100);
  };
}

It still looks to me like too many }

And a superfluous ;