Add snippets for sclang, handle errors in modeline format