Skip to content

github colorization doesn't handle pragmas #7835

@StephenWeatherford

Description

@StephenWeatherford

(see https://review.docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/linter-rule-secure-secrets-in-params?branch=pr-en-us-206413#silencing-false-positives for example)

Repro:
```bicep
#disable-next-line secure-secrets-in-params // Doesn't contain a secret
param mypassword string
```
Currently rendered as:

#disable-next-line secure-secrets-in-params   // Doesn't contain a secret
param mypassword string

image

Expected: Something like:

image

@mumian Do you know if MS docs should be picking up bicep colorization? Most seems to be okay, but it has the #disable-next-line issue and also handles strings incorrectly (but github does handle string correctly):
Docs:
image
Github:

@description('SAS Token for accessing script path')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions