-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
If there is a quoted path that contains a * the parser fails with UnterminatedCommentError().
I found this when parsing a file with CDK having a policy statement like:
new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
actions: [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
resources: [`arn:aws:logs:${environment.region}:${environment.account}:log-group/*`]
})
Would be nice if the quotes were tracked so you would know if the /* was a string rather than comment
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels