From 5cea1b0bdb92af4c5e3050d13935d373e6c1b83d Mon Sep 17 00:00:00 2001 From: He Yun Date: Wed, 6 Nov 2024 23:14:28 +0800 Subject: [PATCH] Apply suggestions from code review delay control of assignment can be the format of "#[ \t]*[0-9]+" Co-authored-by: Wilson Snyder --- tests/indent_delay_assignment.v | 3 +++ verilog-mode.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/indent_delay_assignment.v b/tests/indent_delay_assignment.v index 6962eb8..6bae887 100644 --- a/tests/indent_delay_assignment.v +++ b/tests/indent_delay_assignment.v @@ -6,6 +6,9 @@ d; a <= #1 b | c | d; +a <= # 1 b | +c | +d; end endmodule diff --git a/verilog-mode.el b/verilog-mode.el index fef4850..0bb093e 100644 --- a/verilog-mode.el +++ b/verilog-mode.el @@ -7242,7 +7242,7 @@ Only look at a few lines to determine indent level." (verilog-beg-of-statement-1) (let ((val (if (and (< (point) here) - (verilog-re-search-forward "=[ \t]*\\(#[0-9]+[ \t]*\\)?" here 'move) + (verilog-re-search-forward "=[ \t]*\\(#[ \t]*[0-9]+[ \t]*\\)?" here 'move) ;; not at a |=>, #=#, or [=n] operator (not (string-match "\\[=.\\|#=#\\||=>" (or (buffer-substring