ejs-grammar icon indicating copy to clipboard operation
ejs-grammar copied to clipboard

Else if condition block incorrect

Open JustinChow opened this issue 5 years ago • 2 comments

When using the ejs else if condition block, the create block results in <% } else if ({:condition}) { %> when it should be <% } else if (condition) { %>.

JustinChow avatar Jul 01 '20 04:07 JustinChow

Quickly fixed this and created pull request #58. It's only a single line change so anyone who has this issue can modify their own snipets.json with the fix if they want the fix before the pull request is merged.

JustinChow avatar Jul 01 '20 04:07 JustinChow

Hey, I was wondering why it is set to not add a closing bracket by default, Is there a reason for that? (Same with normal ejselse)

Uttsavv avatar Mar 05 '24 10:03 Uttsavv