Modify filetype autodetection