appden / less.tmbundle

LESS TextMate Bundle
http://lesscss.org/
295 stars 49 forks source link

CSS semicolon not added when a colon is typed #1

Open tomthetree opened 13 years ago

tomthetree commented 13 years ago

Hi, awesome bundle! :)

One difference from using the regular CSS bundle and the LESS bundle is when you type a css attribute followed by a colon:

test {

outline: }

The regular CSS bundle will place a semicolon after your cursor, so:

test {

outline:; }

Saving you from typing it. Small difference but something I'm used to; thought I'd flag it.

Thanks,

jakemhiller commented 13 years ago

I made a temporary fix for this by adding a custom preference scoped to source.css.less with

{   smartTypingPairs = (
    ( ':', ';' ),
    ( '{', '}' ),
);
}

This isn't ideal, because now when I type something like :hover i get :hover;

It's less frustrating than not getting the semi-colon at all, but it's not perfect.

dcalhoun commented 12 years ago

Thanks for the quick fix, Jake. I would love to see this fixed with the correct scope. I tried to figure it out and was unsuccessful.