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:
Riley Bruins
2025-06-18 18:23:05 +02:00
committed by Christian Brabandt
parent fff0132399
commit 03e5ee25fd
6 changed files with 37 additions and 1 deletions

View 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

View 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<'