diff options
author | Emilia Zapata <zapata.contact@gmail.com> | 2022-08-13 13:21:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-13 13:21:31 +0100 |
commit | 6a76e84f555da6d9ee57db80143e1e5eb85535ff (patch) | |
tree | b2669721844ff9e987401e70c0639d0376cd873f | |
parent | b218655d5a485f5b193fb18d7240837d42b89812 (diff) | |
download | vim-git-6a76e84f555da6d9ee57db80143e1e5eb85535ff.tar.gz |
patch 9.0.0197: astro files are not detectedv9.0.0197
Problem: Astro files are not detected.
Solution: Add a pattern to match Astro files. (Emilia Zapata, closes #10904)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 89a1a31a2..797c73a6a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 8ea438251..4e69175d8 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'], diff --git a/src/version.c b/src/version.c index 65bbcf739..08dc889a9 100644 --- a/src/version.c +++ b/src/version.c @@ -736,6 +736,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 197, +/**/ 196, /**/ 195, |