tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
180 stars 13 forks source link

js3 Mirror Mode is broken sometimes #96

Open jmarca opened 10 years ago

jmarca commented 10 years ago

The mirror mode functionality isn't quite right.

for example, when writing tests for mocha using should, I type something like

it('should work',function(done){

and I see on the screen:

it('should work',function(done){
)

but I expect

it('should work',function(done){

})

That is, the inner curly brace doesn't get matched up.

Second, if one types:

somefunctn(foo)

and then you realize a mistake and start backspacing over "foo" to fix the function call, for example, the mirror mode doesn't eat the matching ")" when you delete the "(". Ditto for everything else that is automatic (like quote marks).

I usually use autopair-mode, in everything but JS. Autopair tends to work, but sucks terribly for some reason when editing using js3-mode, so I switched it off and have been trying js3 mirror mode.

Thanks

tamzinblake commented 10 years ago

Yeah mirror mode is pretty terrible.