I opened a sql file with valid sql code, there is some code which creates a view and the viewname is in brackets [ ], so that the '-char is allowed and ignored as user text by sql, but Notepad++ detects it as comment-start and ignors it beeing between [ and ] …
see this picture:
Uploaded screenshot sql.JPG @ImgBB