]> granicus.if.org Git - vim/commitdiff
patch 9.0.0197: astro files are not detected v9.0.0197
authorEmilia Zapata <zapata.contact@gmail.com>
Sat, 13 Aug 2022 12:21:31 +0000 (13:21 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 Aug 2022 12:21:31 +0000 (13:21 +0100)
Problem:    Astro files are not detected.
Solution:   Add a pattern to match Astro files. (Emilia Zapata, closes #10904)

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

index 89a1a31a22f50a8334ecbf600986986491a7b77d..797c73a6af68d2cb2006a177ad8113b14fbde518 100644 (file)
@@ -172,6 +172,9 @@ au BufNewFile,BufRead *.asm,*.[sS],*.[aA],*.mac,*.lst       call dist#ft#FTasm()
 " Assembly - Macro (VAX)
 au BufNewFile,BufRead *.mar                    setf vmasm
 
+" Astro
+au BufNewFile,BufRead *.astro                  setf astro
+
 " Atlas
 au BufNewFile,BufRead *.atl,*.as               setf atlas
 
index 8ea4382518be8fe367fdeb735c7315f6b9783e20..4e69175d88c5e6657097ea727c5b54d6c4de2f88 100644 (file)
@@ -71,6 +71,7 @@ let s:filename_checks = {
     \ 'asciidoc': ['file.asciidoc', 'file.adoc'],
     \ 'asn': ['file.asn', 'file.asn1'],
     \ 'asterisk': ['asterisk/file.conf', 'asterisk/file.conf-file', 'some-asterisk/file.conf', 'some-asterisk/file.conf-file'],
+    \ 'astro': ['file.astro'],
     \ 'atlas': ['file.atl', 'file.as'],
     \ 'autohotkey': ['file.ahk'],
     \ 'autoit': ['file.au3'],
index 65bbcf7392ed000ca23fe3904cc4d85ebb8fa71b..08dc889a92b3e9f5be567dde7117d61522f5f1be 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    197,
 /**/
     196,
 /**/