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

Code folding not including trailing whitespace #25

Open
tonylukasavage opened this issue Apr 6, 2017 · 0 comments
Open

Code folding not including trailing whitespace #25

tonylukasavage opened this issue Apr 6, 2017 · 0 comments

Comments

@tonylukasavage
Copy link

My specific scenario is in Javascript with a multiline template string.

{
    "scope": "source.js",
    "startMarker": "query = `",
    "endMarker": "`"
}

this causes a line like this:

function someFunc() {
  let query = `
    SELECT foo
    FROM bar
  `;
}

to look like this (code folding character omitted):

function someFunc() {
  let query = `
  `;
}

I was expecting it to look like this (code folding character omitted):

function someFunc() {
  let query = ``;
}
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

No branches or pull requests

1 participant