python-hcl2 4.3.4__tar.gz → 4.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/PKG-INFO +1 -1
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/hcl2.lark +6 -2
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/transformer.py +1 -1
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/version.py +2 -2
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/PKG-INFO +1 -1
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.codacy.yml +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.coveragerc +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.github/CODEOWNERS +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.github/workflows/codeql-analysis.yml +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.github/workflows/pr_check.yml +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.github/workflows/publish.yml +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.gitignore +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.pre-commit-config.yaml +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.yamllint.yml +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/CHANGELOG.md +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/LICENSE +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/MANIFEST.in +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/README.md +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/bin/terraform_test +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/__init__.py +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/__main__.py +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/api.py +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/parser.py +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/py.typed +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/mypy.ini +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/pylintrc +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/pyproject.toml +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/SOURCES.txt +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/dependency_links.txt +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/entry_points.txt +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/not-zip-safe +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/requires.txt +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/top_level.txt +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/reports/.gitignore +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/requirements.txt +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/setup.cfg +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/test-requirements.txt +0 -0
- {python-hcl2-4.3.4 → python-hcl2-4.3.5}/tox.ini +0 -0
|
@@ -5,7 +5,11 @@ block : identifier (identifier | STRING_LIT)* new_line_or_comment? "{" body "}"
|
|
|
5
5
|
new_line_and_or_comma: new_line_or_comment | "," | "," new_line_or_comment
|
|
6
6
|
new_line_or_comment: ( /\n/ | /#.*\n/ | /\/\/.*\n/ )+
|
|
7
7
|
|
|
8
|
-
identifier : /[a-zA-Z_][a-zA-Z0-9_-]*/
|
|
8
|
+
identifier : /[a-zA-Z_][a-zA-Z0-9_-]*/ | IN | FOR | IF | FOR_EACH
|
|
9
|
+
IF : "if"
|
|
10
|
+
IN : "in"
|
|
11
|
+
FOR : "for"
|
|
12
|
+
FOR_EACH : "for_each"
|
|
9
13
|
|
|
10
14
|
?expression : expr_term | operation | conditional
|
|
11
15
|
|
|
@@ -27,7 +31,7 @@ expr_term : "(" new_line_or_comment? expression new_line_or_comment? ")"
|
|
|
27
31
|
| index_expr_term
|
|
28
32
|
| get_attr_expr_term
|
|
29
33
|
| identifier
|
|
30
|
-
| provider_function_call
|
|
34
|
+
| provider_function_call
|
|
31
35
|
| heredoc_template
|
|
32
36
|
| heredoc_template_trim
|
|
33
37
|
| attr_splat_expr_term
|
|
@@ -116,7 +116,7 @@ class DictTransformer(Transformer):
|
|
|
116
116
|
args_str = ""
|
|
117
117
|
if len(args) > 5:
|
|
118
118
|
args_str = ", ".join([str(arg) for arg in args[5] if arg is not Discard])
|
|
119
|
-
provider_func = "::".join([args[0],args[2],args[4]])
|
|
119
|
+
provider_func = "::".join([args[0], args[2], args[4]])
|
|
120
120
|
return f"{provider_func}({args_str})"
|
|
121
121
|
|
|
122
122
|
def arguments(self, args: List) -> List:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|