-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Sentinel Grammar #10
Conversation
2787054
to
a25d37e
Compare
Add https://github.com/hashicorp/vscode-sentinel/blob/81b8073d4ddb3b670c2a0742b682ef9343b06254/syntaxes/sentinel.tmlanguage.json to project. - Format file to conform to existing structure in hcl.tmGrammar.json. - Rename file to sentinel.tmGrammar.json
a25d37e
to
4b4a656
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll reflect this in #11
}, | ||
{ | ||
"name": "keyword.control.sentinel", | ||
"match": "\\b(if|case|for|any|all|filter|break|continue|return)\\b" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"match": "\\b(if|case|for|any|all|filter|break|continue|return)\\b" | |
"match": "\\b(if|case|for|any|all|filter|map|break|continue|return)\\b" |
https://docs.hashicorp.com/sentinel/language/spec#quantifier-expressions-any-all-filter-map
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I'd rather address that in a separate PR as a dedicated fix instead of hiding it inside this port. I'll create the ticket and detail then merge this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detail added in #12
Add https://github.com/hashicorp/vscode-sentinel/blob/81b8073d4ddb3b670c2a0742b682ef9343b06254/syntaxes/sentinel.tmlanguage.json to project.