leoca
eb9a5ca0c6
fix(hooks): keep $'...' open across an escaped apostrophe
...
Dropping the previous-character check in toggleQuote let the `'` of `\'` close an ANSI-C `$'...'` string, so `echo $'it\'s'; (rm -rf /tmp/x)` left a quote open and the group was never extracted. Track `$'...'` in the quote state and consume backslash escapes inside it, as bash does, and cover the inner scanners (`(...)`, `$(...)`, `{ ...; }` bodies) with quotes ending in a backslash.
2026-10-29 18:44:54 +00:00
..
2026-10-25 15:16:53 -04:00
2026-10-20 18:17:37 -04:00
2026-10-20 10:47:58 -04:00
2026-10-20 17:38:26 -04:00
2026-10-11 06:15:49 -04:00
2026-10-29 18:44:54 +00:00
2026-09-12 02:59:02 -04:00
2026-10-29 18:44:54 +00:00
2026-10-10 18:38:26 -04:00
2026-10-20 17:40:58 -04:00
2026-10-25 14:46:45 -04:00
2026-04-12 12:34:45 +05:30
2026-10-11 01:55:54 -04:00
2026-08-06 15:39:49 -04:00
2026-05-11 05:31:12 -04:00
2026-09-28 00:38:00 -04:00
2026-10-11 14:21:25 -04:00
2026-10-01 17:50:41 -05:00
2026-10-10 18:53:22 -04:00
2026-07-28 21:37:41 -04:00
2026-10-10 20:11:00 +08:00
2026-10-10 21:02:19 +08:00
2026-10-20 10:47:58 -04:00
2026-10-11 19:59:01 -04:00
2026-08-11 14:15:57 -04:00
2026-08-11 14:15:57 -04:00
2026-08-28 15:59:31 -04:00
2026-10-11 14:05:46 +08:00
2026-10-09 19:33:37 -04:00
2026-09-14 13:49:18 +05:30
2026-08-11 14:15:57 -04:00
2026-10-11 05:33:44 -04:00
2026-10-11 03:53:41 -04:00
2026-10-11 02:26:58 -04:00
2026-10-11 08:56:29 -04:00
2026-10-11 05:36:06 -04:00
2026-08-11 14:15:57 -04:00
2026-09-10 15:31:36 +01:00
2026-09-10 15:31:36 +01:00
2026-09-10 15:31:36 +01:00
2026-09-10 15:31:36 +01:00
2026-09-10 15:31:36 +01:00
2026-09-10 15:31:36 +01:00
2026-09-10 15:31:36 +01:00
2026-09-10 15:31:36 +01:00
2026-05-11 05:31:12 -04:00
2026-08-11 14:15:57 -04:00