Expecting EOF found static

Why am I receiving this error?
I am trying to print a global variable.
I have the variable declared in another script. The script is name Accessing_gameObjects and the variable is name “globalHeight Metres”.
Code of line in Accessing_gameObjects;
"static.var globalHeightMetres = 10; "
Code in main script;
"
function Update ()
{
print (Accessing_gameObjects.globalHeightMetres);

}
"

Please post the code (and only the code) inside CODE tags. It’s difficult to tell what you’ve got going on in your first post. For instance, I assume the double quotes you wrapped the snippets in isn’t in the actual code, but there’s no way to know that… Also, instead of just posting small snippets, post at least the functions in question in their entirety.

When I get an "Expecting EOF, found … ", it’s almost always an extra closing curly bracket somewhere. Your functions are therefore “off by one bracket” from that point on, which can cause all kinds of errors. Go through the code and be sure each function is properly closed.