view runtime/ftplugin/rhelp.vim @ 32450:72ffe2b9a4b1 v9.0.1556

patch 9.0.1556: Vim9: error for missing "return" after "throw" Commit: https://github.com/vim/vim/commit/cf2610c82b64b1785af0804916789295cae45e93 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 14 19:59:59 2023 +0100 patch 9.0.1556: Vim9: error for missing "return" after "throw" Problem: Vim9: error for missing "return" after "throw". Solution: Set had_return flag for "throw". (closes https://github.com/vim/vim/issues/12262)
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 May 2023 21:15:03 +0200
parents b2412874362f
children 8ae680be2a51
line wrap: on
line source

" Vim filetype plugin file
" Language: R help file
" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
" Homepage: https://github.com/jalvesaq/R-Vim-runtime
" Last Change:	Sun Apr 24, 2022  09:12AM

" Only do this when not yet done for this buffer
if exists("b:did_ftplugin")
  finish
endif

" Don't load another plugin for this buffer
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

setlocal iskeyword=@,48-57,_,.

if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst *.qmd)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst;*.qmd\n" .
        \ "All Files (*.*)\t*.*\n"
endif

let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter"

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: sw=2