If I create project outside of Unity let's say console aplication in C# I get normal errors, everything is okay.
For the example, script in Unity:
float mouseX = Input.GetAxis("Mouse X")
clearly doesn't have ";" but VS shows nothing. Even If I find it in file explorer and open it through VS it shows no errors. Of course Unity gives ".cs(19,48): error CS1002: ; expected"
I would give you a screenshot but I can't (10 reputation required).