Automatic closing of language pragmas.