kaiwood/vscode-endwise

Spurious "end" inserted after format.html

Closed this issue ยท 2 comments

jlnr commented

Big thanks for this useful extension ๐Ÿ‘

There's one corner case where I see an extra end every time:

respond_to

It seems to be triggered by the word "format", but I'm not sure why.

Thanks for the report!

My bad, the regex I used didn't check for spaces after keywords, so format.html was basically the same as for i in [1, 2]. Fixed in v1.2.4.

jlnr commented

Works like a charm! Thanks.