derive typscript-mode from prog-mode with backwards compatibility