" Vim filetype plugin file " Language: BASIC (QuickBASIC 4.5) " Maintainer: Doug Kearns " Last Change: 2024 Jan 14 if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 let s:cpo_save = &cpo set cpo&vim setlocal comments=:REM\ ,:Rem\ ,:rem\ ,:' setlocal commentstring='\ %s setlocal formatoptions-=t formatoptions+=croql let b:undo_ftplugin = "setl fo< com< cms<" " TODO: support exit ... as middle matches? if exists("loaded_matchit") && !exists("b:match_words") let s:line_start = '\%(^\s*\)\@<=' let s:not_end = '\%(end\s\+\)\@,' .. \ s:not_end_or_exit .. '\:\,' .. \ s:not_end_or_exit .. '\:\,' .. \ s:not_end .. '\:\,' .. \ s:not_end .. '\:\%(select\s\+\)\@:\,' .. \ '\:\,' .. \ '\\%(\s\+\%(input\|output\|random\|append\|binary\)\)\@!:\,' .. \ '\:\,' .. \ s:line_start .. 'if\%(.*\:\,' .. \ '\:\' let b:match_skip = 'synIDattr(synID(line("."),col("."),1),"name") =~? "comment\\|string" || ' .. \ 'strpart(getline("."), 0, col(".") ) =~? "\\