Skip to content

feat(parser): implement $'...' ANSI-C quoting and $"..." syntax#371

Merged
chaliy merged 1 commit intomainfrom
claude/feat-353-dollar-single-quote-TjcEQ
Feb 27, 2026
Merged

feat(parser): implement $'...' ANSI-C quoting and $"..." syntax#371
chaliy merged 1 commit intomainfrom
claude/feat-353-dollar-single-quote-TjcEQ

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Feb 27, 2026

Summary

  • Implement $'...' ANSI-C quoting with full escape sequence support (\n, \t, \xHH, \uHHHH, \UHHHHHHHH, \NNN octal, etc.)
  • Implement $"..." locale translation synonym (treated as regular double-quote)
  • Remove 12 ### skip: markers from spec tests that now pass
  • Add ### bash_diff: markers for unicode tests where system bash behavior differs

Test plan

  • All bash spec tests pass (100% pass rate)
  • Bash comparison tests pass (known differences marked with bash_diff)
  • cargo fmt --check clean
  • cargo clippy -D warnings clean
  • All integration and unit tests pass

Closes #353

Add support for ANSI-C quoting ($'...') in the lexer with escape sequences:
\n, \t, \r, \a, \b, \f, \v, \e/\E, \\, \', \", \?,
\xHH (hex), \uHHHH (unicode), \UHHHHHHHH (unicode), \NNN (octal).

Also add $"..." as a locale translation synonym (treated like "...").

Remove 12 skip markers from spec tests that now pass.

Closes #353
@chaliy chaliy merged commit 72768ec into main Feb 27, 2026
16 checks passed
@chaliy chaliy deleted the claude/feat-353-dollar-single-quote-TjcEQ branch March 12, 2026 03:44
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.

Dollar single-quote $'' syntax not implemented

2 participants