Support multiple-line selectors

[fix #86]