Open alexrussell opened 10 years ago
Yes, our scope query doesn't currently span multiple lines. We can leave this open though.
Is that something that can be fixed by changing the way toggle-quotes uses the API or is it something in Atom's core that simply doesn't yet allow packages to retrieve a multi-line range from a given scope?
If a quoted area goes over two lines the quote toggler does not calculate the correct area to toggle. My guess (from my delving into the code the other day) is that this isn't an issue with the plugin, but the underlying API to get the range associated to the scope from the cursor's position. Vague example: (
|
denotes cursor placement)is turned into
Similarly:
is turned into