Skip to content

Fix: Improve string literal parsing and validation#8

Merged
marko-ks merged 1 commit into
mainfrom
fix/string-parsing
Jun 29, 2026
Merged

Fix: Improve string literal parsing and validation#8
marko-ks merged 1 commit into
mainfrom
fix/string-parsing

Conversation

@marko-ks

Copy link
Copy Markdown
Member

This change enhances the YINI parser's string handling by:

  • Correctly decoding classic string escapes, including octal (\o), hexadecimal (\x, \u, \U) sequences.
  • Validating that literal control characters are disallowed in single-quoted and double-quoted strings, while allowing them in multiline triple-quoted strings as per YINI's specification.
  • Ensuring consistent UTF-8 output for the test-suite adapter on Windows.

This change enhances the YINI parser's string handling by:
- Correctly decoding classic string escapes, including octal (`\o`), hexadecimal (`\x`, `\u`, `\U`) sequences.
- Validating that literal control characters are disallowed in single-quoted and double-quoted strings, while allowing them in multiline triple-quoted strings as per YINI's specification.
- Ensuring consistent UTF-8 output for the test-suite adapter on Windows.
```
@marko-ks marko-ks merged commit 599f9c6 into main Jun 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant