aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-03 21:31:29 -0500
committerGitHub <noreply@github.com>2020-12-03 21:31:29 -0500
commit44be2dfca192db9f47d59c6bb29975c9730c5827 (patch)
treea4c65c0b3e257b75e0a0bfeee1f65b3296b580a4 /runtime
parentf5e0f17968eae6770cc0da136d8c9a4b23bc6da2 (diff)
parent2bcae2024230eb4dd1013779ec1b69dc104c4021 (diff)
downloadrneovim-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.vim9
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