jarod2d / sublime_valign

Vertical alignment plugin for Sublime Text 2 and 3
91 stars 7 forks source link

Incorect Alignment of "||=" #29

Open ignatiusreza opened 10 years ago

ignatiusreza commented 10 years ago
var1 = foo
var2 ||= var2
var_another ||= var2

becomes:

var1                     = foo
var2 |        |= var2
var_another | |= var2

expected:

var1          = foo
var2        ||= var2
var_another ||= var2
jarod2d commented 10 years ago

Hey, apologies for the late reply. I looked into this, but it's a non-trivial amount of work to add support for multiple-character prefixes on alignment characters like this, and I unfortunately don't have time to work on it further at the moment. I'll try to get this added the next time I can work on it though, and I'm always happy to take a look at pull requests if you or someone else wants to tackle this issue.

Thanks!