magnus-rattlehead
c06002f3cb
patch 9.2.0447: cindent does not ignore comments
...
Problem: When find_start_brace() scans backwards for the enclosing
block, '{' and '}' inside // and /* */ comments are counted,
producing wrong indent for code following such comments
(rendcrx).
Solution: Implement FM_SKIPCOMM in findmatchlimit() to track block-
comment state and skip matches inside comments. Pass
FM_SKIPCOMM from cindent's call sites
(find_start_brace, find_match_char, cin_iswhileofdo,
get_c_indent).
fixes: #4
fixes: #648
fixes: #19578
closes : #19581
closes : #20111
Signed-off-by: magnus-rattlehead <guranjakustivi@gmail.com >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2026-05-05 21:14:33 +00:00
..
2026-02-14 15:19:10 +00:00
2026-02-25 21:08:15 +00:00
2026-05-04 19:17:52 +00:00
2026-03-31 15:20:08 +00:00
2026-04-29 19:49:45 +00:00
2026-04-20 16:08:47 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-18 22:19:06 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2024-08-17 15:14:43 +02:00
2024-08-17 15:14:43 +02:00
2026-01-19 18:07:28 +00:00
2024-08-20 19:57:00 +02:00
2024-08-20 19:57:00 +02:00
2026-01-26 19:40:37 +00:00
2026-02-09 18:35:43 +00:00
2024-08-15 21:39:33 +02:00
2024-08-15 21:39:33 +02:00
2026-02-14 15:19:10 +00:00
2026-04-13 15:50:07 +02:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-06 09:44:56 +00:00
2026-05-04 19:10:37 +00:00
2026-04-03 08:29:09 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-07 21:07:46 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-03-18 21:22:46 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-03-08 21:03:12 +00:00
2026-02-09 18:35:43 +00:00
2026-01-26 19:40:37 +00:00
2026-03-19 21:29:51 +00:00
2026-05-02 16:11:01 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-09 18:49:43 +00:00
2026-05-05 19:47:19 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-21 19:08:05 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-16 14:42:47 +02:00
2026-02-14 15:19:10 +00:00
2026-04-16 20:03:39 +00:00
2026-04-05 15:58:00 +00:00
2026-05-01 16:22:32 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-21 19:34:18 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-29 21:17:11 +00:00
2026-05-04 19:17:52 +00:00
2026-05-04 19:17:52 +00:00
2026-05-01 14:54:56 +00:00
2026-04-27 18:43:10 +00:00
2026-03-04 21:09:25 +00:00
2026-04-28 21:06:45 +00:00
2024-05-11 11:16:21 +02:00
2026-04-05 16:53:52 +00:00
2026-04-07 20:46:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-29 19:10:43 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-28 20:31:34 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-04-27 17:06:47 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-02-14 15:19:10 +00:00
2026-05-05 21:14:33 +00:00
2026-03-08 19:48:32 +00:00
2026-02-14 15:19:10 +00:00
2026-05-04 19:17:52 +00:00
2026-03-05 20:55:39 +00:00
2024-11-28 21:45:39 +01:00
2024-11-28 21:45:39 +01:00
2025-08-20 20:23:29 +02:00
2025-08-20 20:23:29 +02:00
2026-01-19 18:07:28 +00:00
2025-10-07 19:19:43 +00:00
2025-10-07 19:19:43 +00:00
2026-01-26 19:40:37 +00:00
2026-02-09 18:35:43 +00:00
2025-08-18 21:40:40 +02:00
2025-08-18 21:40:40 +02:00
2024-08-17 15:14:43 +02:00
2024-08-17 15:14:43 +02:00
2026-01-19 18:07:28 +00:00
2024-08-20 19:57:00 +02:00
2024-08-20 19:57:00 +02:00
2026-01-26 19:40:37 +00:00
2026-01-26 19:40:37 +00:00
2024-08-15 21:39:33 +02:00
2024-08-15 21:39:33 +02:00
2025-06-29 17:51:33 +02:00
2025-06-30 20:28:46 +02:00
2025-06-24 21:17:25 +02:00
2025-06-24 21:17:25 +02:00
2026-01-19 18:07:28 +00:00
2025-07-09 19:43:51 +02:00
2025-07-09 19:43:51 +02:00
2026-01-26 19:40:37 +00:00
2026-02-09 18:35:43 +00:00
2025-06-23 19:52:42 +02:00
2025-06-23 19:52:42 +02:00
2026-02-14 15:19:10 +00:00
2026-04-20 18:24:17 +00:00
2026-05-01 16:32:44 +00:00
2026-02-14 15:19:10 +00:00
2026-03-25 22:11:55 +00:00
2026-03-25 22:11:55 +00:00
2026-01-19 18:07:28 +00:00
2026-03-31 15:49:44 +00:00
2026-03-31 15:49:44 +00:00
2026-01-26 19:40:37 +00:00
2026-01-26 19:40:37 +00:00
2026-03-25 22:10:09 +00:00
2026-03-25 22:10:09 +00:00