Improve handling of multi-line dict expressions. Starting point for this PR was a user issue related to incorrect parsing of multi-line dicts in AppSync VTL templates.
The problem is that the regex patterns were not using the multiline flag (re.M) to search for whitespaces (newlines) in dict expressions, which is now fixed. The PR also adds a simple AWS validated snapshot test.
Improve handling of multi-line dict expressions. Starting point for this PR was a user issue related to incorrect parsing of multi-line dicts in AppSync VTL templates.
The problem is that the regex patterns were not using the multiline flag (
re.M
) to search for whitespaces (newlines) in dict expressions, which is now fixed. The PR also adds a simple AWS validated snapshot test.