PHP-Twig.tmbundle icon indicating copy to clipboard operation
PHP-Twig.tmbundle copied to clipboard

Weird syntax autocomplete bug when adding a curly brace inside html tags

Open MaffooBristol opened this issue 7 years ago • 1 comments

Really struggling to write a sensical title for this one! Perhaps a gif will help better 😅

Expected:

<div class="thing-to-do">
  {{ something }}
  {{ title }}
</div>

Actual:

<div class="thing-to-do">
  {{ something }
  {{ title }}
  }
</div>

sublime-twig-bug

It seems to only do it on the first occurrence of trying to insert a new {{ }} before an existing one. Multiple lines works fine. Any ideas? Thanks!

MaffooBristol avatar May 17 '17 11:05 MaffooBristol

Also it seems it does the same thing with {% %} tags. Just any occurrence of { before another block. There are a few other places it does it too...

MaffooBristol avatar May 24 '17 11:05 MaffooBristol