billymoon / Stylus

Stylus Package for Sublime Text 2 / 3
Other
129 stars 31 forks source link

"font" is not recognized as a property #24

Closed leny closed 10 years ago

leny commented 10 years ago

Hi,

As you can see on the following image, the font property is not recognized as it.

font property bug

Thanks in advance,

leny commented 10 years ago

If you need the above code to debug :

a#jumpto
    position absolute
    display block
    width 30px
    height 30px
    top 10px
    left 10px
    background gray
    border-radius 4px
    font normal 18px/30px OpenSans, Verdana, sans-serif
    color white
    text-align center
    text-decoration none
    cursor pointer
    &:before
        content ""
    span
        display none
grassator commented 10 years ago

Thanks for reporting.

Your code should be ok now and changed font to be considered a property by default and only when it can be with absolute certainty recognized as a tag it is highlighted as one. There are still probably some edge but since styling font tag is pretty rare I don't expect it to bother anyone.

leny commented 10 years ago

I'll check that when Package Control will update the package (now it doesn't detect your update).

Thanks for the fix. :)