Skip to content

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

jclevy opened this Issue Jun 14, 2012 · 2 comments

2 participants

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 B.V. 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!

@nightwing nightwing closed this Jun 14, 2012
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
Something went wrong with that request. Please try again.