The syntax check always is executed solely for the ABAP source code in the editor currently opened.
You can run the ABAP syntax check directly through a toolbar icon in the main window of the ABAP perspective.