Dictionary initialization

If I type the following in the REPL, I get what I expect: a dictionary with two elements. Note: I want the definition to be over two lines.

cols = Dict([ "FID_NEW" => :fid_new,
"POINT_X" => :point_x]) #,

However, if this expression is in an atom window, in the global space, and I execute it (shift-enter), I get the message:

syntax: incomplete: premature end of input 

Why would that be? It is as if only the first line is executed when executed from a atom window.

If I put the two lines within a function, the code works as expected, so that is what I’ll do. So why the error when typed in a window? Thanks.