From 2bcae2024230eb4dd1013779ec1b69dc104c4021 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 3 Dec 2020 18:56:13 -0500 Subject: vim-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 -- cgit