mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
patch 9.1.1468: filetype: bright(er)script files are not recognized
Problem: filetype: bright(er)script files are not recognized Solution: detect *.bs files as brighterscript filetype and *.brs as brightscript filetype, include filetype plugins (Riley Bruins) closes: #17566 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
fff0132399
commit
03e5ee25fd
2
.github/MAINTAINERS
vendored
2
.github/MAINTAINERS
vendored
@ -134,6 +134,8 @@ runtime/ftplugin/asy.vim @avidseeker
|
|||||||
runtime/ftplugin/autohotkey.vim @telemachus
|
runtime/ftplugin/autohotkey.vim @telemachus
|
||||||
runtime/ftplugin/awk.vim @dkearns
|
runtime/ftplugin/awk.vim @dkearns
|
||||||
runtime/ftplugin/basic.vim @dkearns
|
runtime/ftplugin/basic.vim @dkearns
|
||||||
|
runtime/ftplugin/brighterscript.vim @ribru17
|
||||||
|
runtime/ftplugin/brightscript.vim @ribru17
|
||||||
runtime/ftplugin/bst.vim @tpope
|
runtime/ftplugin/bst.vim @tpope
|
||||||
runtime/ftplugin/c3.vim @ttytm
|
runtime/ftplugin/c3.vim @ttytm
|
||||||
runtime/ftplugin/cabal.vim @ribru17
|
runtime/ftplugin/cabal.vim @ribru17
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types
|
" Vim support file to detect file types
|
||||||
"
|
"
|
||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2025 Jun 03
|
" Last Change: 2025 Jun 18
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
@ -309,6 +309,12 @@ au BufNewFile,BufRead *.bb,*.bbappend,*.bbclass,*/build/conf/*.conf,*/meta{-*,}/
|
|||||||
" Blkid cache file
|
" Blkid cache file
|
||||||
au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
|
au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
|
||||||
|
|
||||||
|
" Brighterscript
|
||||||
|
au BufNewFile,BufRead *.bs setf brighterscript
|
||||||
|
|
||||||
|
" Brightscript
|
||||||
|
au BufNewFile,BufRead *.brs setf brightscript
|
||||||
|
|
||||||
" BSDL
|
" BSDL
|
||||||
au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl
|
au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl
|
||||||
|
|
||||||
|
11
runtime/ftplugin/brighterscript.vim
Normal file
11
runtime/ftplugin/brighterscript.vim
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: Brighterscript
|
||||||
|
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||||
|
" Last Change: 2025 Jun 17
|
||||||
|
|
||||||
|
if exists('b:did_ftplugin')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
runtime! ftplugin/brightscript.vim
|
13
runtime/ftplugin/brightscript.vim
Normal file
13
runtime/ftplugin/brightscript.vim
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: Brightscript
|
||||||
|
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||||
|
" Last Change: 2025 Jun 17
|
||||||
|
|
||||||
|
if exists('b:did_ftplugin')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
setl comments=:' commentstring='\ %s
|
||||||
|
|
||||||
|
let b:undo_ftplugin = 'setl com< cms<'
|
@ -142,6 +142,8 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
blank: ['file.bl'],
|
blank: ['file.bl'],
|
||||||
blueprint: ['file.blp'],
|
blueprint: ['file.blp'],
|
||||||
bp: ['Android.bp'],
|
bp: ['Android.bp'],
|
||||||
|
brighterscript: ['file.bs'],
|
||||||
|
brightscript: ['file.brs'],
|
||||||
bsdl: ['file.bsd', 'file.bsdl'],
|
bsdl: ['file.bsd', 'file.bsdl'],
|
||||||
bst: ['file.bst'],
|
bst: ['file.bst'],
|
||||||
bzl: ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
|
bzl: ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
|
||||||
|
@ -709,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1468,
|
||||||
/**/
|
/**/
|
||||||
1467,
|
1467,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user