pangloss / vim-javascript

Vastly improved Javascript indentation and syntax support in Vim.
http://www.vim.org/scripts/script.php?script_id=4452
3.79k stars 358 forks source link

Incorrect Syntax highlighting #1179

Open amerov opened 5 years ago

amerov commented 5 years ago

Code example

function prefilData(hsh, el, secondStartDate) {
  const xy = (_, i) => {
    const data = { x: (el.data[0] && el.data[0].x + SECONDS_IN_DAY * i) || secondStartDate, y: null }
    return el.data[i] || data
  }
  return hsh.data.map(xy)
}

Screenshot: Screenshot from 2019-07-25 02-07-14

secondStartDate matched as a jsObjectValue jsObject jsFuncBlock jsFuncBlock

amadeus commented 5 years ago

Not sure I see the problem?

amerov commented 5 years ago

Not sure I see the problem?

secondStartDate highlighted as a object key

amadeus commented 5 years ago

I can't seem to repro:

example