From ce590719f67ec031f75935bdbfe0c9616ea878b9 Mon Sep 17 00:00:00 2001 From: Jaskaran Singh Date: Sat, 21 Dec 2019 13:29:38 +0530 Subject: [PATCH] Add semantic patch (.cocci) to delimiterMap (#408) Coccinelle is a tool used for transforming C source code. It uses the Semantic Patch Language (.cocci files) for doing this. The conventional notation for commenting in semantic patches is "//". Used in conjunction with this plugin: https://github.com/ahf/cocci-syntax The cocci filetype is set, following which NERD_commenter can be used in .cocci files. Signed-off-by: Jaskaran Singh --- plugin/NERD_commenter.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 903bcf1..bd53c0c 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -123,6 +123,7 @@ let s:delimiterMap = { \ 'clipper': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'clojure': { 'left': ';' }, \ 'cmake': { 'left': '#' }, + \ 'cocci': { 'left': '//' }, \ 'coffee': { 'left': '#', 'leftAlt': '###', 'rightAlt': '###' }, \ 'conkyrc': { 'left': '#' }, \ 'context': { 'left': '%', 'leftAlt': '--' },