Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10$: JS string decoding routine #1159

Open
strager opened this issue Jan 5, 2024 · 0 comments
Open

10$: JS string decoding routine #1159

strager opened this issue Jan 5, 2024 · 0 comments
Labels
false negative Bug: quick-lint-js accepts syntatically-invalid code for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html

Comments

@strager
Copy link
Collaborator

strager commented Jan 5, 2024

Write a routine which decodes escape sequences in string literal tokens.

Caveats:

  • String span might not start or end with ' or " (due to error recovery)
  • Escape sequences might be invalid

No diagnostics should be reported by the routine. (Diagnostics should have been reported already when lexing the string literal.)

Memory should be allocated in a user-provided Memory_Resource, probably using Vector.

Decoded string should be (possibly-invalid) UTF-8.

@strager strager added for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html false negative Bug: quick-lint-js accepts syntatically-invalid code labels Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false negative Bug: quick-lint-js accepts syntatically-invalid code for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html
Projects
None yet
Development

No branches or pull requests

1 participant