Check syntax on file open