Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
delay control of assignment can be the format of "#[ \t]*[0-9]+"

Co-authored-by: Wilson Snyder <wsnyder@wsnyder.org>
  • Loading branch information
my2817 and wsnyder authored Nov 6, 2024
1 parent 8aecd09 commit 5cea1b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/indent_delay_assignment.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ d;
a <= #1 b |
c |
d;
a <= # 1 b |
c |
d;

end
endmodule
2 changes: 1 addition & 1 deletion verilog-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cea1b0

Please sign in to comment.