Add a custom variable to perform a syntax check only when a file is saved