added code to get file syntax