Skip to content

Commit ce59071

Browse files
jajajasalu2alerque
authored andcommitted
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 <jaskaransingh7654321@gmail.com>
1 parent 023f2d1 commit ce59071

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/NERD_commenter.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ let s:delimiterMap = {
123123
\ 'clipper': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
124124
\ 'clojure': { 'left': ';' },
125125
\ 'cmake': { 'left': '#' },
126+
\ 'cocci': { 'left': '//' },
126127
\ 'coffee': { 'left': '#', 'leftAlt': '###', 'rightAlt': '###' },
127128
\ 'conkyrc': { 'left': '#' },
128129
\ 'context': { 'left': '%', 'leftAlt': '--' },

0 commit comments

Comments
 (0)