mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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)
6a76e84f55
This commit is contained in:
parent
9dec3815d2
commit
33b49d5f55
@ -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
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user