Hi George,
Judging from the described problem, it is not sure that it is related to Git. The three objects pcscale.sra, w_ini_maintain.srw, and w_pc_lw_main.srw in the screenshot after switching branches also failed. You can check the code of these three objects and see if they are related.
The error message prompted by PB's syntax detection may point to the wrong location, and the real problem may lie elsewhere (the error syntax hint pointed to by Edit source is inaccurate).
It is recommended to check all the code of the problematic objects first. If the problem cannot be solved, can you provide us with a test case for debugging?
Regards,
Kitty