jmurphyau / language-ember-htmlbars

Other
5 stars 2 forks source link

[BUG] auto-indent not working for {{#}}{{/}} blocks #11

Open bartocc opened 7 years ago

bartocc commented 7 years ago

How to reproduce

  1. Open a new .hbs file with the following content
{{#if true}}
foobar
{{/if}}
  1. Select the "foobar" line and type "cmd+shift+i" (on a Mac at least) to trigger 'auto-indent:apply".

Actual result

{{#if true}}
foobar
{{/if}}

Expected result

{{#if true}}
  foobar
{{/if}}

This happens because increaseIndentPattern and decreaseIndentPattern in https://github.com/jmurphyau/language-ember-htmlbars/blob/master/settings/language-ember-htmlbars.cson are wrong.

We should remove the references to php which are legacy from the language-html package port and and new references for htmlbars syntax