diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-03 21:31:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 21:31:29 -0500 |
commit | 44be2dfca192db9f47d59c6bb29975c9730c5827 (patch) | |
tree | a4c65c0b3e257b75e0a0bfeee1f65b3296b580a4 /runtime | |
parent | f5e0f17968eae6770cc0da136d8c9a4b23bc6da2 (diff) | |
parent | 2bcae2024230eb4dd1013779ec1b69dc104c4021 (diff) | |
download | rneovim-44be2dfca192db9f47d59c6bb29975c9730c5827.tar.gz rneovim-44be2dfca192db9f47d59c6bb29975c9730c5827.tar.bz2 rneovim-44be2dfca192db9f47d59c6bb29975c9730c5827.zip |
Merge pull request #13434 from janlazo/vim-8.2.2076
vim-patch:8.1.{1013,1774},8.2.{1164,1673,1907,2076,2077,2078,2085,2086}
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index b9d2a43d5d..ed19fa1a43 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1768,8 +1768,13 @@ au BufNewFile,BufReadPost *.tutor setf tutor " TWIG files au BufNewFile,BufReadPost *.twig setf twig -" Typescript -au BufNewFile,BufReadPost *.ts setf typescript +" Typescript or Qt translation file (which is XML) +au BufNewFile,BufReadPost *.ts + \ if getline(1) =~ '<?xml' | + \ setf xml | + \ else | + \ setf typescript | + \ endif " TypeScript with React au BufNewFile,BufRead *.tsx setf typescriptreact |