<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 26 Aug 2016, at 2:49, Graham Heath wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">If what I’m reading is correct, this might be as simple as starting "from +
</div><div dir="auto">1" when looking up the next result.
</div><div dir="auto">
</div><div dir="auto">But I’m probably wrong, lol.
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">The problem is with things like: <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">+foo+ and +bar+</code>.</p>

<p dir="auto">If you double-click the second <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">+</code> then how to know if we should search left or right for the paired character?</p>

<p dir="auto">We could look at surrounding whitespace, but then there is <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">(+foo+)</code> with no whitespace around. So we could look at word characters, but then <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">"</code> is also a paired character and we have things like: <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">printf("%s…", arg);</code> where neither side of the first <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">"</code> has whitespace or wordcharacters.</p>

<p dir="auto">That said, I’ve made a note about this, I think we could do a heuristic based on the above thinking that should get it right most of the time, and it would actually be awesome to have ⇧⌘B work in strings.</p>

<p dir="auto">Though right now there is “Select Current Scope” which works to select the current “unit”, this might also be helpful in determining whether to search left/right of <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">+foo+</code>, assuming the grammar matches this.</p>
</div>
</div>
</body>
</html>