Skip to content

Conversation

@MEPalma
Copy link
Contributor

@MEPalma MEPalma commented Nov 30, 2023

Motivation

Closes: #9771
The current lexer for the SFN v2 interpreter occasionally encounters difficulty accurately lexing string literals declared as arguments within intrinsic functions. This pull request (PR) resolves this issue within the lexer by implementing a non-greedy approach to token consumption between quotes. This involves defining safe code points that exclude the specified quote delimiters, and appropriately associating escaped character symbols with their intended counterparts (\n, \r, \t).

Changes

Relevant updates to the intrinsic function lexer. Escape characters replacement in intrinsic function preprocessor. Relevant tests.

@MEPalma MEPalma added the semver: patch Non-breaking changes which can be included in patch releases label Nov 30, 2023
@MEPalma MEPalma self-assigned this Nov 30, 2023
@coveralls
Copy link

Coverage Status

coverage: 84.202% (+0.01%) from 84.188%
when pulling 79bab3e on MEP-sfn-intrinsic_fix_escape_seqs
into 86c9642 on master.

@github-actions
Copy link

LocalStack Community integration with Pro

       2 files         2 suites   1h 9m 5s ⏱️
2 376 tests 2 063 ✔️ 313 💤 0
2 377 runs  2 063 ✔️ 314 💤 0

Results for commit 79bab3e.

Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dominikschubert dominikschubert merged commit c3d24de into master Dec 1, 2023
@dominikschubert dominikschubert deleted the MEP-sfn-intrinsic_fix_escape_seqs branch December 1, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: InvalidDefinition error when creating/updating State Machine

4 participants