annotate runtime/ftplugin/poke.vim @ 28846:0541b9c09e21 v8.2.4946

patch 8.2.4946: Vim9: some code not covered by tests Commit: https://github.com/vim/vim/commit/7f8a3b11bfc02f24dfd877d0a81392d679008180 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 12 22:03:01 2022 +0100 patch 8.2.4946: Vim9: some code not covered by tests Problem: Vim9: some code not covered by tests. Solution: Add a few more test cases. Remove dead code.
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 May 2022 23:15:03 +0200
parents 788e10cec9bd
children 8ae680be2a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24103
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: GNU Poke
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2021 March 11
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("b:did_ftplugin")
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let b:did_ftplugin = 1
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 let s:cpo_save = &cpo
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 set cpo&vim
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 setlocal commentstring=//\ %s
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 setlocal formatoptions-=t formatoptions+=croql
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 setlocal include=load
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 setlocal suffixesadd=.pk
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 let b:browsefilter = "Poke Files (*.pk)\t*.pk\n" .
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 \ "All Files (*.*)\t*.*\n"
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 endif
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 let b:undo_ftplugin = "setl fo< com< cms< inc< sua<" .
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 \ " | unlet! b:browsefilter"
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 let &cpo = s:cpo_save
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 unlet s:cpo_save
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31
788e10cec9bd Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 " vim: nowrap sw=2 sts=2 ts=8