From 023cc20324c41059b5ce79edaef0ffeef8bf5923 Mon Sep 17 00:00:00 2001 From: Nicholas Cronquist Date: Tue, 26 Nov 2019 02:11:36 -0500 Subject: [PATCH] Add new delimiter for Hashicorp 'sentinel' files (#406) - Sentinel is a new language developed by Hashicorp - Sentinel supports three types of comments, `#` and `//` for single line comments and `/* ... */` for multi-line comments as described in their documentation - https://docs.hashicorp.com/sentinel/language/spec/#comments - Since sentinel and terraform, .tf extension, are related, the `#` symbol was chosen to keep in line with the tf single line comment --- plugin/NERD_commenter.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 0758542..ce7693b 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -388,6 +388,7 @@ let s:delimiterMap = { \ 'scss': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'sdc': { 'left': '#' }, \ 'sed': { 'left': '#' }, + \ 'sentinel': { 'left': '#', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'sgmldecl': { 'left': '--', 'right': '--' }, \ 'sgmllnx': { 'left': '' }, \ 'sh': { 'left': '#' },