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:
Nicholas Cronquist
2019-11-26 02:11:36 -05:00
committed by Caleb Maclennan
parent 9208286236
commit 023cc20324

View File

@@ -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': '#' },