microsoft / microsoft/vscode-powerquery

String with backslash+double-quote sequence is not parsed by syntax highligher correctly

Open
#75 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

grammar
Dominant language
TypeScript
Stars
108
Forks
25
Avg merge
8d 22h
Merged PRs (30d)
2

Description

A string literal with the sequence backslash+double-quote gets interpreted by the syntax highlighter as a single double quote rather than treating the backslash literally, but the M language treats the backslash literally.

This breaks syntax highlighting for all code after the quote, and interprets the rest of the code as a string literal.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Reproduce the backslash-plus-double-quote case in the Power Query syntax highlighter, then locate the highlighting implementation and its test coverage; done means the backslash is treated literally and code after the quote remains highlighted correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.