Unity 5.5 preprocessor directive determiner is broken

So, in latest version of Unity 5.5 scripts with these text doesn’t compile while building player.

string s = @"some multiline text
#next line";

or

/*some multiline comment
#next line*/

What is the error you are seeing? Did you report the bug?

The compiler got updated in 5.5. This may well be a bug as a result of that. I would suggest a bug report. I can’t imagine this exact scenario would have been caught in QC.

Error: “error CS1024: Wrong preprocessor directive”
So, if a new line begins with #, it will cause error, doesn’t matter if it comment or string.
And yes, I did report a bug.

In that case there is not much to do. For now simply avoid using a hash at the beginning of a line.