]> granicus.if.org Git - vim/commitdiff
patch 8.2.0190: Kotlin files are not recognized v8.2.0190
authorBram Moolenaar <Bram@vim.org>
Fri, 31 Jan 2020 21:57:59 +0000 (22:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 31 Jan 2020 21:57:59 +0000 (22:57 +0100)
Problem:    Kotlin files are not recognized.
Solution:   Detect Kotlin files. (Alkeryn, closes #5560)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 1347c42b2bebb555998d93c95a90f4ecd30cfb73..e2e48c9976456a99e6230a6cfc7f23b80e8ad0c4 100644 (file)
@@ -384,7 +384,7 @@ au BufNewFile,BufRead configure.in,configure.ac setf config
 " CUDA  Cumpute Unified Device Architecture
 au BufNewFile,BufRead *.cu,*.cuh               setf cuda
 
-" Dockerfilb; Podman uses the same syntax with name Containerfile
+" Dockerfile; Podman uses the same syntax with name Containerfile
 au BufNewFile,BufRead Containerfile,Dockerfile,*.Dockerfile    setf dockerfile
 
 " WildPackets EtherPeek Decoder
@@ -833,6 +833,9 @@ au BufNewFile,BufRead *.k                   setf kwt
 " Kivy
 au BufNewFile,BufRead *.kv                     setf kivy
 
+" Kotlin
+au BufNewFile,BufRead *.kt,*.ktm,*.kts         setf kotlin
+
 " KDE script
 au BufNewFile,BufRead *.ks                     setf kscript
 
index 2bd85344b74b045b57c0d1b361d4ceb2c2100a30..3868e73c5d2ca910ace0025f11ab524f42f45fe3 100644 (file)
@@ -234,6 +234,7 @@ let s:filename_checks = {
     \ 'kconfig': ['Kconfig', 'Kconfig.debug'],
     \ 'kivy': ['file.kv'],
     \ 'kix': ['file.kix'],
+    \ 'kotlin': ['file.kt', 'file.ktm', 'file.kts'],
     \ 'kscript': ['file.ks'],
     \ 'kwt': ['file.k'],
     \ 'lace': ['file.ace', 'file.ACE'],
index 5f090c332c2dd8f98a81ccd6894c02578db7e2bb..f351d35b32d3b872e280dc94d297f4cdc8d5f534 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    190,
 /**/
     189,
 /**/