REditorSupport / REditorSupport/vscode-R
syntax: escaped backticks not handled in identifier
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
For example, the following is a valid identifier:
`\``
But the escaped backtick is treated as the end of the identifier, and so the final backtick is its own separate thing.
I think a regular expression like the following would suffice:
([`](?:(?:\\\\.)|(?:[^`\\\\]))*[`])
Alternatively, I think the existing strategy for matching strings could be re-used for quoted identifiers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in syntax/r.json at the identifier rule around lines 169-172, then compare it with the quoted-string matching strategy around lines 315-335. Verify the grammar keeps an escaped backtick inside a quoted identifier and does not treat it as the closing delimiter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json, r, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100