# HG changeset patch # User Bram Moolenaar # Date 1607026506 -3600 # Node ID d01b011f91b95706ff333c732204174c4b80e3a8 # Parent 02af8cff1cf9d2cf3be57d8ed2614f7d031de52f patch 8.2.2085: Qt translation file is recognized as typescript Commit: https://github.com/vim/vim/commit/c0d670ce16d0e148b7d39ac354571b3d284a0b53 Author: Bram Moolenaar Date: Thu Dec 3 21:08:37 2020 +0100 patch 8.2.2085: Qt translation file is recognized as typescript Problem: Qt translation file is recognized as typescript. Solution: Check the first line for "'], 'Xfile.ts') + split Xfile.ts + call assert_equal('xml', &filetype) + bwipe! + + call writefile(['// looks like Typescript'], 'Xfile.ts') + split Xfile.ts + call assert_equal('typescript', &filetype) + bwipe! + + call delete('Xfile.hook') + filetype off +endfunc + " vim: shiftwidth=2 sts=2 expandtab diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2085, +/**/ 2084, /**/ 2083,