Odd error while setting up a tag search

I made a script to allow me to turn certain tiles on the floor yellow to allow the player to know the safe path with which to follow, the rest fall and the player falls with them. I’ve been wracking my brain for awhile and I’ve finally think I’ve figured it out but the snag is I am getting odd errors in my script. `public class Highlight : MonoBehaviour {


gameObject.GetComponent ().material.color = Color.yellow ();
It claims that I’m missing a semicolon on the Safefloor variable and then a second error saying the semi colon I am using is an invalid token. Then on the “Safefloor = GameObject.FindGameObjectswithTag” line, it says that “=” is an invalid token and so is the semicolon. I don’t understand the errors. Could someone please shed some light on what I’m doing wrong?

Not sure why the script broke when posting but here it is again.

public class Highlight : MonoBehaviour {

	var Safefloor : GameObject[];
		Safefloor = GameObject.FindGameObjectswithTag("Safe");
	var exceptions : GameObject[];

	void OnTriggerEnter (Collider other)
		if (other.tag == "Player") {
			foreach (var Safe in Safefloor) {
				gameObject.GetComponent<Renderer> ().material.color = Color.yellow ();