Racket filetype support

9 views
Skip to first unread message

D. Ben Knoble

unread,
Aug 26, 2022, 1:54:37 PM8/26/22
to vim...@vim.org
Attached are improved syntax, ftplugin, indent, and compiler files for Racket.

These are extracted from https://github.com/benknoble/vim-racket with
the help of Doug Kearns.

The improved ftdetect is not included yet; it would change the way
*.rkt files are handled.

D. Ben Knoble
racosetup.vim
racotest.vim
racomake.vim
raco.vim
racket.vim
racket.vim
racket.vim

Bram Moolenaar

unread,
Aug 26, 2022, 2:57:49 PM8/26/22
to vim...@googlegroups.com, D. Ben Knoble, vim...@vim.org

Ben Knoble wrote:

> Attached are improved syntax, ftplugin, indent, and compiler files for Racket.
>
> These are extracted from https://github.com/benknoble/vim-racket with
> the help of Doug Kearns.

Thanks. Mostly OK, but I see that line continuation is used in the
ftplugin file, therefore the 'cpo' option should be set and restored.
See other runtime files for examples.

> The improved ftdetect is not included yet; it would change the way
> *.rkt files are handled.

OK, changing this would also need a test in src/testdir/test_filetype.vim

--
Females are strictly forbidden to appear unshaven in public.
[real standing law in New Mexico, United States of America]

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

D. Ben Knoble

unread,
Aug 30, 2022, 10:04:55 AM8/30/22
to Bram Moolenaar, vim...@googlegroups.com, vim...@vim.org
On Fri, Aug 26, 2022 at 2:57 PM Bram Moolenaar <Br...@moolenaar.net> wrote:

> Thanks. Mostly OK, but I see that line continuation is used in the
> ftplugin file, therefore the 'cpo' option should be set and restored.
> See other runtime files for examples.

Good catch. Will fix.

> > The improved ftdetect is not included yet; it would change the way
> > *.rkt files are handled.
>
> OK, changing this would also need a test in src/testdir/test_filetype.vim

Yep, Doug and I may discuss this at some point and bring it to the
list, but it's not a priority for me right now.

D. Ben Knoble

unread,
Aug 30, 2022, 11:03:52 AM8/30/22
to Bram Moolenaar, vim...@googlegroups.com, vim...@vim.org
On Tue, Aug 30, 2022 at 10:04 AM D. Ben Knoble <ben.k...@gmail.com> wrote:
>
> On Fri, Aug 26, 2022 at 2:57 PM Bram Moolenaar <Br...@moolenaar.net> wrote:
>
> > Thanks. Mostly OK, but I see that line continuation is used in the
> > ftplugin file, therefore the 'cpo' option should be set and restored.
> > See other runtime files for examples.
>
> Good catch. Will fix.

Updates attached.
racotest.vim
racomake.vim
racosetup.vim
raco.vim
racket.vim
racket.vim
racket.vim
Reply all
Reply to author
Forward
0 new messages