Add file type detection and syntax rules.