This happens in SQL Prompt 4 and SQL Refactor 1. Having written some script to drop some statistics auto created by the server then layout function fails with a 'syntax' error message with the first statistics name underlined in wavy red.
Parsing the TSQL shows no errors.
Executing the TSQL returns success.
The statistics name is "_WA_Sys_0000000B_7F948E70". The TSQL is simply:
DROP STATISTICS [schema].[table].[_WA_Sys_0000000B_7F948E70]
it makes no difference if I include [ and ] or not, or alter the script to have a different statistic as the first one. Which ever statistic is first causes the error.
Will test this with EAP 5 when the install is complete.
[Later ... ... quite a bit later]
this also fails with EAP5 188.8.131.52