Commit a108a1b
committed
Recognize the other quoting conventions around paths
Straight single and double quotes were the only pairs treated as a path
boundary, but output quotes paths several other ways: GNU tools use
`like this', markdown-flavored output (and the AI agents that emit it) uses
`like this`, and anything that went through smart-quote substitution uses
the curly pairs.
Replace the "closed by the same character" rule with an opener → closers
map, so an opener pairs only with its own closer and a mismatched pair is
not a boundary.
The new tests use "/tmp/dir.d with prose.txt" and click inside "with": an
unquoted space-joined segment counts only when it carries a "/" or "." of
its own, so that click finds nothing unless a quote pair supplies the
boundary — testUnquotedPathStopsAtProseSegment pins that down. It keeps the
cases honest; a path like "/tmp/my file.txt" would pass them unquoted.1 parent f91ebfc commit a108a1b
2 files changed
Lines changed: 94 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7314 | 7314 | | |
7315 | 7315 | | |
7316 | 7316 | | |
7317 | | - | |
7318 | | - | |
7319 | | - | |
7320 | | - | |
7321 | | - | |
| 7317 | + | |
| 7318 | + | |
| 7319 | + | |
| 7320 | + | |
| 7321 | + | |
| 7322 | + | |
| 7323 | + | |
| 7324 | + | |
| 7325 | + | |
| 7326 | + | |
| 7327 | + | |
| 7328 | + | |
| 7329 | + | |
| 7330 | + | |
| 7331 | + | |
| 7332 | + | |
| 7333 | + | |
| 7334 | + | |
7322 | 7335 | | |
7323 | 7336 | | |
7324 | 7337 | | |
7325 | 7338 | | |
7326 | 7339 | | |
7327 | 7340 | | |
7328 | | - | |
| 7341 | + | |
7329 | 7342 | | |
7330 | 7343 | | |
7331 | | - | |
7332 | | - | |
7333 | | - | |
7334 | | - | |
| 7344 | + | |
| 7345 | + | |
| 7346 | + | |
| 7347 | + | |
7335 | 7348 | | |
7336 | | - | |
| 7349 | + | |
7337 | 7350 | | |
7338 | 7351 | | |
7339 | 7352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
250 | 320 | | |
251 | 321 | | |
252 | 322 | | |
| |||
0 commit comments