mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 18:03:46 -05:00
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>
This commit is contained in:
committed by
Caleb Maclennan
parent
023f2d10d5
commit
ce590719f6
@@ -123,6 +123,7 @@ let s:delimiterMap = {
|
|||||||
\ 'clipper': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
|
\ 'clipper': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
|
||||||
\ 'clojure': { 'left': ';' },
|
\ 'clojure': { 'left': ';' },
|
||||||
\ 'cmake': { 'left': '#' },
|
\ 'cmake': { 'left': '#' },
|
||||||
|
\ 'cocci': { 'left': '//' },
|
||||||
\ 'coffee': { 'left': '#', 'leftAlt': '###', 'rightAlt': '###' },
|
\ 'coffee': { 'left': '#', 'leftAlt': '###', 'rightAlt': '###' },
|
||||||
\ 'conkyrc': { 'left': '#' },
|
\ 'conkyrc': { 'left': '#' },
|
||||||
\ 'context': { 'left': '%', 'leftAlt': '--' },
|
\ 'context': { 'left': '%', 'leftAlt': '--' },
|
||||||
|
|||||||
Reference in New Issue
Block a user