Thanks for the heads up and clear explanation, does make a lot of sense. Will probably remember that one for a long time. :-)
Whilst it's not neccessary to have a space between the code and the comment, it's certainly nicer on the eye. The code highlighter on the forum makes it look wrong as it only identifies whole words.
Generally I'd have the spaces, as though I could write this:
SELECT 1 FROM[dbo].[table]
It's not as well written, from my opinion as - plus you're less likely to get into trouble...
SELECT 1 FROM [dbo].[table]