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.
Files changed (38) hide show
  1. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/PKG-INFO +1 -1
  2. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/hcl2.lark +6 -2
  3. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/transformer.py +1 -1
  4. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/version.py +2 -2
  5. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/PKG-INFO +1 -1
  6. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.codacy.yml +0 -0
  7. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.coveragerc +0 -0
  8. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.github/CODEOWNERS +0 -0
  9. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.github/workflows/codeql-analysis.yml +0 -0
  10. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.github/workflows/pr_check.yml +0 -0
  11. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.github/workflows/publish.yml +0 -0
  12. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.gitignore +0 -0
  13. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.pre-commit-config.yaml +0 -0
  14. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/.yamllint.yml +0 -0
  15. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/CHANGELOG.md +0 -0
  16. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/LICENSE +0 -0
  17. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/MANIFEST.in +0 -0
  18. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/README.md +0 -0
  19. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/bin/terraform_test +0 -0
  20. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/__init__.py +0 -0
  21. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/__main__.py +0 -0
  22. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/api.py +0 -0
  23. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/parser.py +0 -0
  24. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/hcl2/py.typed +0 -0
  25. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/mypy.ini +0 -0
  26. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/pylintrc +0 -0
  27. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/pyproject.toml +0 -0
  28. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/SOURCES.txt +0 -0
  29. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/dependency_links.txt +0 -0
  30. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/entry_points.txt +0 -0
  31. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/not-zip-safe +0 -0
  32. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/requires.txt +0 -0
  33. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/python_hcl2.egg-info/top_level.txt +0 -0
  34. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/reports/.gitignore +0 -0
  35. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/requirements.txt +0 -0
  36. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/setup.cfg +0 -0
  37. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/test-requirements.txt +0 -0
  38. {python-hcl2-4.3.4 → python-hcl2-4.3.5}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-hcl2
3
- Version: 4.3.4
3
+ Version: 4.3.5
4
4
  Summary: A parser for HCL2
5
5
  Author-email: Amplify Education <github@amplify.com>
6
6
  License: MIT
@@ -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:
@@ -1,4 +1,4 @@
1
1
  # file generated by setuptools_scm
2
2
  # don't change, don't track in version control
3
- __version__ = version = '4.3.4'
4
- __version_tuple__ = version_tuple = (4, 3, 4)
3
+ __version__ = version = '4.3.5'
4
+ __version_tuple__ = version_tuple = (4, 3, 5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-hcl2
3
- Version: 4.3.4
3
+ Version: 4.3.5
4
4
  Summary: A parser for HCL2
5
5
  Author-email: Amplify Education <github@amplify.com>
6
6
  License: MIT
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