Mercurial > vim
diff runtime/filetype.vim @ 27796:8fdc92bdcff1 v8.2.4424
patch 8.2.4424: ".gts" and ".gjs" files are not recognized
Commit: https://github.com/vim/vim/commit/cdf717283ca70b18f20b8a2cefe7957083280c6f
Author: NullVoxPopuli <LPSego3+dev@gmail.com>
Date: Sat Feb 19 16:35:58 2022 +0000
patch 8.2.4424: ".gts" and ".gjs" files are not recognized
Problem: ".gts" and ".gjs" files are not recognized.
Solution: Recognize Glimmer flavored typescript and javascript.
(closes #9799)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Feb 2022 17:45:05 +0100 |
parents | addcf70c8346 |
children | 8fc68ce4a097 |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -730,6 +730,10 @@ au BufNewFile,BufRead gnashrc,.gnashrc,g au BufNewFile,BufRead gitolite.conf setf gitolite au BufNewFile,BufRead {,.}gitolite.rc,example.gitolite.rc setf perl +" Glimmer-flavored TypeScript and JavaScript +au BufNewFile,BufRead *.gts setf typescript.glimmer +au BufNewFile,BufRead *.gjs setf javascript.glimmer + " Gnuplot scripts au BufNewFile,BufRead *.gpi,.gnuplot setf gnuplot