vim-ocaml icon indicating copy to clipboard operation
vim-ocaml copied to clipboard

Add Cram test syntax highlighting

Open johnridesabike opened this issue 2 years ago • 2 comments

It looks like this was added to the VSCode extension a while ago, but not the Vim one. We could probably just port those highlight rules? https://github.com/ocamllabs/vscode-ocaml-platform/pull/193

johnridesabike avatar May 16 '23 16:05 johnridesabike

VSCode highlighting rules can't simply be ported to Vim but thankfully the syntax is simple.

I've been happily using the syntax file that comes with the Python cram project: https://github.com/myint/cram/blob/master/contrib/cram.vim (to install it, copy it to ~/.vim/after/ftplugin/cram.vim and add this to your vimrc: autocmd BufNewFile,BufRead *.t setlocal ft=cram) I wish this (GPL licensed) could be integrated to vim-ocaml (which doesn't state its license).

Julow avatar May 22 '23 09:05 Julow

Given that the vim-ocaml files are synced with Vim, I assume that they must be under the same license as Vim itself? I agree that this repository should explicitly state that. (But that's probably a separate issue.)

Back on topic: adding the Python cram project's syntax file to my ~/.vim seems to work great. I would definitely welcome having it integrated into vim-ocaml, if it's possible.

johnridesabike avatar May 22 '23 14:05 johnridesabike