Coffeescript folding breaks code on "#{}" string element #806

Closed
jclevy opened this Issue Jun 14, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@jclevy

jclevy commented Jun 14, 2012

The following coffeescript code create duplicate code lines when you use the folding service :

The 'a href' lines are seen as folded lines !!!!
You can unfold them and see a line duplicate !!!

div ->
a href:'#', onclick:"@panels[#{id}].move(-1);", 'Up'
a href:'#', onclick:"@panels[#{id}].new();", 'New'
a href:'#', onclick:"@panels[#{id}].move(1);", 'Down'

Very strange, weird and it makes Ace folding unusable for Coffeescript.

It seems that the problem comes from the #{id} string part.

@nightwing

This comment has been minimized.

Show comment
Hide comment
@nightwing

nightwing Jun 14, 2012

Member

[ # was being detected as a [ followed by comment and same bug was present in python mode too
fixed in d999ef5
thank you very much for reporting!

Member

nightwing commented Jun 14, 2012

[ # was being detected as a [ followed by comment and same bug was present in python mode too
fixed in d999ef5
thank you very much for reporting!

@nightwing nightwing closed this Jun 14, 2012

@jclevy

This comment has been minimized.

Show comment
Hide comment
@jclevy

jclevy Jun 14, 2012

You're welcome. Great to see this fixed.

jclevy commented Jun 14, 2012

You're welcome. Great to see this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment