From a8cac399ac7ba1f8c4598249c92598d32695f423 Mon Sep 17 00:00:00 2001 From: Lomholy <111510975+Lomholy@users.noreply.github.com> Date: Wed, 7 Jan 2026 11:49:37 +0100 Subject: [PATCH] Add commentstring to vim editor Add a commentstring to the vim syntax, such that block comments are easily made using gcc --- support/common/editors/mccode.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/common/editors/mccode.vim b/support/common/editors/mccode.vim index 90a61539fd..fada7871c1 100644 --- a/support/common/editors/mccode.vim +++ b/support/common/editors/mccode.vim @@ -12,7 +12,7 @@ " McStas/McXtrace instruments are mostly c syntax so start with that :runtime! syntax/c.vim - +:setlocal commentstring=//\ %s "keywords for mcstas statements :syntax keyword instrStatement DECLARE DEPENDENCY DEFINE END FINALLY INITIALIZE MCDISPLAY SAVE SHARE USERVARS :syntax keyword instrStatement TRACE DEFINITION PARAMETERS POLARISATION SETTING STATE