SublimeText / Sass

Sass and SCSS syntax for Sublime Text
https://packagecontrol.io/packages/Sass
MIT License
50 stars 8 forks source link

Semicolon is added to most selectors after typing `:` #3

Closed ghost closed 6 years ago

ghost commented 6 years ago

When adding a pseudo-class by typing .class: the code auto-completes to .class:;.

Seems to happen with all selector types other than element and & selectors.

Possibly related to #1 .

braver commented 6 years ago

Yeah, I was able to fix it for some selectors, but not classes and ids. I probably need to rethink some things here about matching for meta.selector.

ghost commented 6 years ago

Cheers! Alternatively do you have a list of known bugs you could publish? It would keep people doubling up on the issues you're already aware of.

braver commented 6 years ago

Actually this one was off my radar, but usually I fix whatever I find right away or log it here in GitHub.

braver commented 6 years ago

@indrekpaas I pushed a bunch of work on master. I basically had to change the approach to matching selectors, and then put everything back together (at the same time improving parity with the default CSS package). I haven't spend a lot of time writing stylesheets with it yet, but it passes all the tests and it looks good as far as I can tell. If you want, you can try it out, see if it fixes this issue for you and works ok otherwise?

ghost commented 6 years ago

@braver thanks for the updates, the results are amazing!

braver commented 6 years ago

Thanks! One or two small tweaks I need to make and then I'll release the update.

tigrr commented 5 years ago

I am still having this issue.