From 33b49d5f55423a1a3174ad0ce42c4454871aa9f8 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 13 Aug 2022 15:11:03 +0200 Subject: vim-patch:9.0.0197: astro files are not detected (#19755) Problem: Astro files are not detected. Solution: Add a pattern to match Astro files. (Emilia Zapata, closes vim/vim#10904) https://github.com/vim/vim/commit/6a76e84f555da6d9ee57db80143e1e5eb85535ff --- runtime/filetype.vim | 3 +++ runtime/lua/vim/filetype.lua | 1 + 2 files changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/filetype.vim b/runtime/filetype.vim index f744714aa2..52a20d5c10 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -173,6 +173,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/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 3cfc4e288a..872106b20d 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -142,6 +142,7 @@ local extension = { asp = function(path, bufnr) return require('vim.filetype.detect').asp(bufnr) end, + astro = 'astro', atl = 'atlas', as = 'atlas', ahk = 'autohotkey', -- cgit