billymoon / Stylus

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

fixed custom-elements regex #49

Closed xlaywan closed 9 years ago

grassator commented 9 years ago

I've played some more with this proposal and unfortunately given the sublime limitations I can't see how we can write a regex that will match something like:

body
    word-wrap break-word
        color red

Because in this case word-wrap and break-word should be treated as custom elements and not properties. This is the problem I've encountering a lot while developing this Stylus package and in a nutshell it comes down to being unable to check that next line has bigger indent with a regexp.

So unfortunately I will have to decline this PR. Thank you again for the effort. If you figure out how to circumvent the problem I described above please do let me know and I will be happy to integrate this change.