You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A clear and concise description of what the bug is.
similar to #77 but with "multi conditionals"
If you have multiple condition checks over multiple lines you get an UnexpectedToken Error
If you write it all in one line it does not throw the error e.g. foo = (bar ? baz(foo) : foo == "bar" ? "baz" : foo)
Software:
OS: [macOS / Windows / Linux]
VERSION_ID="15.5"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
Python version Python 3.11.10
python-hcl2 version
pip show python-hcl2
Name: python-hcl2
Version: 7.3.1
Summary: A parser for HCL2
Home-page: https://github.com/amplify-education/python-hcl2
Snippet of HCL2 code causing the unexpected behaviour:
Activity
kkozik-amplify commentedon Apr 7, 2026
Fixed in the latest release:
https://github.com/amplify-education/python-hcl2/releases/tag/v8.1.0