Skip to content
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

Update highlighting for synopsis metadata in comments #16

Closed
BernieWhite opened this issue Jun 3, 2019 · 0 comments · Fixed by #18
Closed

Update highlighting for synopsis metadata in comments #16

BernieWhite opened this issue Jun 3, 2019 · 0 comments · Fixed by #18
Assignees
Labels
enhancement A request to change or add to current behaviour
Milestone

Comments

@BernieWhite
Copy link
Member

Add grammar highlighting to support use of Synopsis: similar to Description: used in comment based metadata.

For example:

# Synopsis: Redis Cache should reject TLS versions older then 1.2
Rule 'redis.MinTLS' -If { ResourceType 'Microsoft.Cache/Redis' } {
    # Check that TLS is within range
    Within 'properties.minimumTlsVersion' '1.2'
}

This is related to BernieWhite/PSRule#164

Use of Description: is deprecated and will be removed in the future, but right now both are supported and should be highlighted correctly.

@BernieWhite BernieWhite added the enhancement A request to change or add to current behaviour label Jun 3, 2019
@BernieWhite BernieWhite added this to the v0.3.0 milestone Jun 3, 2019
@BernieWhite BernieWhite self-assigned this Jun 3, 2019
BernieWhite added a commit that referenced this issue Jun 7, 2019
- Update syntax and snippets for v0.6.0 #16 #17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A request to change or add to current behaviour
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant