jamalsenouci / sublimetext-syntaxfold

Sublime Text Plugin that provides a configurable command and popup for folding code based on syntax
MIT License
40 stars 6 forks source link

Code folding not including trailing whitespace #25

Open tonylukasavage opened 7 years ago

tonylukasavage commented 7 years ago

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 = ``;
}