mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 09:53:47 -05:00
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
This commit is contained in:
committed by
Caleb Maclennan
parent
9208286236
commit
023cc20324
@@ -388,6 +388,7 @@ let s:delimiterMap = {
|
||||
\ 'scss': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
|
||||
\ 'sdc': { 'left': '#' },
|
||||
\ 'sed': { 'left': '#' },
|
||||
\ 'sentinel': { 'left': '#', 'leftAlt': '/*', 'rightAlt': '*/' },
|
||||
\ 'sgmldecl': { 'left': '--', 'right': '--' },
|
||||
\ 'sgmllnx': { 'left': '<!--', 'right': '-->' },
|
||||
\ 'sh': { 'left': '#' },
|
||||
|
||||
Reference in New Issue
Block a user