Skip to content

Commit 126d295

Browse files
authored
Correct Param & Var Declarations (#17511)
## Description For some reason the grammar used "parameter" and "variable" instead of the actual keywords used in Bicep "param" and "var" ## Checklist - [x] I have read and adhere to the [contribution guide](https://github.com/Azure/bicep/blob/main/CONTRIBUTING.md). ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/17511)
1 parent ec32a20 commit 126d295

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/grammar.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ statement ->
77
extensionDecl |
88
compileTimeImportDecl |
99
metadataDecl |
10-
parameterDecl |
10+
paramDecl |
1111
typeDecl |
12-
variableDecl |
12+
varDecl |
1313
resourceDecl |
1414
moduleDecl |
1515
testDecl |
@@ -42,14 +42,14 @@ compileTimeImportFromClause -> "from" interpString(path)
4242
4343
metadataDecl -> "metadata" IDENTIFIER(name) "=" expression NL
4444
45-
parameterDecl ->
46-
decorator* "parameter" IDENTIFIER(name) typeExpression parameterDefaultValue? NL |
47-
decorator* "parameter" IDENTIFIER(name) "resource" interpString(type) parameterDefaultValue? NL |
45+
paramDecl ->
46+
decorator* "param" IDENTIFIER(name) typeExpression parameterDefaultValue? NL |
47+
decorator* "param" IDENTIFIER(name) "resource" interpString(type) parameterDefaultValue? NL |
4848
parameterDefaultValue -> "=" expression
4949
5050
typeDecl -> decorator* "type" IDENTIFIER(name) "=" typeExpression NL
5151
52-
variableDecl -> decorator* "variable" IDENTIFIER(name) "=" expression NL
52+
varDecl -> decorator* "var" IDENTIFIER(name) "=" expression NL
5353
5454
resourceDecl -> decorator* "resource" IDENTIFIER(name) interpString(type) "existing"? "=" (ifCondition | object | forExpression) NL
5555

0 commit comments

Comments
 (0)