diff --git a/tests/indent_delay_assignment.v b/tests/indent_delay_assignment.v new file mode 100644 index 0000000..6bae887 --- /dev/null +++ b/tests/indent_delay_assignment.v @@ -0,0 +1,14 @@ +module a(); +always(*)begin +a = #1 b | +c | +d; +a <= #1 b | +c | +d; +a <= # 1 b | +c | +d; + +end +endmodule diff --git a/tests_ok/indent_delay_assignment.v b/tests_ok/indent_delay_assignment.v new file mode 100644 index 0000000..f65d339 --- /dev/null +++ b/tests_ok/indent_delay_assignment.v @@ -0,0 +1,14 @@ +module a(); + always(*)begin + a = #1 b | + c | + d; + a <= #1 b | + c | + d; + a <= # 1 b | + c | + d; + + end +endmodule diff --git a/verilog-mode.el b/verilog-mode.el index 90aa975..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]*" 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