From 81a84dacd248dbe0f7e15da98aca7bfcd993ebba Mon Sep 17 00:00:00 2001 From: bretello Date: Wed, 8 Dec 2021 23:57:20 +0100 Subject: [PATCH] vim: add json comment highlighting --- vim/vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 6d559af..3b6b6ad 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -61,6 +61,11 @@ autocmd FileType vue setlocal shiftwidth=2 softtabstop=2 expandtab autocmd FileType go setlocal noexpandtab makeprg=go\ build autocmd FileType rust set makeprg=cargo\ build +syntax match jsonComment "//.*" +syntax match jsonComment "\(/\*\)\|\(\*/\)" +hi def link jsonComment Comment + + au BufRead dvc.yaml let b:ale_fix_on_save=0 au BufRead *.dvc let b:ale_fix_on_save=0 au BufRead *.dvc set filetype=yaml