FILE: C:\Program Files\Git\usr\share\vim\vim91\ftplugin\astro.vim
--
" Vim filetype plugin file
" Language: Astro
" Maintainer: Romain Lafourcade
" Last Change: 2024 Apr 21
" 2024 May 24 by Riley Bruins ('commentstring')
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo-=C
function! s:IdentifyScope(start, end) abort
let pos_start = searchpairpos(a:start, '', a:end, 'bnW')
let pos_end = searchpairpos(a:start, '', a:end, 'nW')
return pos_start != [0, 0]
\ && pos_end != [0, 0]
\ && pos_start[0] != getpos('.')[1]
endfunction
function! s:AstroComments() abort
if s:IdentifyScope('^---\n\s*\S', '^---\n\n')
\ || s:IdentifyScope('^\s*