guillermooo / Vintageous

Vi/Vim emulation for Sublime Text 3
http://guillermooo.bitbucket.org/Vintageous/
Other
1.64k stars 115 forks source link

Braces in strings mess up brace matching with % #983

Open kevinwheeler opened 9 years ago

kevinwheeler commented 9 years ago

Hi, I'm working in javascript and have this code:

    {
    ..
      if (allowMobile && !forceMobile) {
        output += '@media (min-width: ' + width + 'px) {';
      }
      ..
    }

The problem is that the open brace inside the string seems to mess up the brace matching. If I go to the brace after forceMobile) and press %, it goes to the brace on the last line, which isn't the correct closing brace.

When the selection is over that same opening brace, before pressing %, sublime will automatically place an underbar under the brace and the correct matching/closing brace (sublime does this to indicate where the matching closing brace is). So sublime is doing the correct behavior, but vintageous is not.