]> granicus.if.org Git - vim/commitdiff
patch 8.2.1292: AIDL filetype not recognized v8.2.1292
authorBram Moolenaar <Bram@vim.org>
Sat, 25 Jul 2020 14:53:12 +0000 (16:53 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 25 Jul 2020 14:53:12 +0000 (16:53 +0200)
Problem:    AIDL filetype not recognized.
Solution:   Add filetype detection. (Dominique PellĂ©, closes #6533)

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

index 7c76b12ee38bb238b595d4b7b31bba6da5332b7f..80ea2949cc1cfaac91d83a124e41734753ac4717 100644 (file)
@@ -88,6 +88,9 @@ endif
 " AHDL
 au BufNewFile,BufRead *.tdf                    setf ahdl
 
+" AIDL
+au BufNewFile,BufRead *.aidl                   setf aidl
+
 " AMPL
 au BufNewFile,BufRead *.run                    setf ampl
 
index 8ec8355c2461c244c5fc1f6906c8a63252ff0223..2e517c0bb9753ceea70edf025509474fc9563546 100644 (file)
@@ -54,6 +54,7 @@ let s:filename_checks = {
     \ 'acedb': ['file.wrm'],
     \ 'ada': ['file.adb', 'file.ads', 'file.ada', 'file.gpr'],
     \ 'ahdl': ['file.tdf'],
+    \ 'aidl': ['file.aidl'],
     \ 'alsaconf': ['.asoundrc', '/usr/share/alsa/alsa.conf', '/etc/asound.conf'],
     \ 'aml': ['file.aml'],
     \ 'ampl': ['file.run'],
index 8934011f6557bc60cd2e3c3103ad5833ea4eb43a..3611fe6a4b88977ee3cdc1dc21bc960dabe6dccc 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1292,
 /**/
     1291,
 /**/