File tree 3 files changed +35
-3
lines changed
3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change
1
+ module ex ;
2
+
3
+ subwidth u_a2 // commented
4
+ (/*AUTOINST*/
5
+ // Outputs
6
+ .bus4a (bus4a[0 :3 ]));
7
+
8
+ endmodule
9
+
10
+ module subwidth (/*AUTOARG*/
11
+ // Outputs
12
+ bus4a
13
+ );
14
+ output [0 :3 ] bus4a;
15
+ endmodule
Original file line number Diff line number Diff line change
1
+ module ex ;
2
+
3
+ subwidth u_a2 // commented
4
+ (/*AUTOINST*/
5
+ // Outputs
6
+ .bus4a (bus4a[0 :3 ]));
7
+
8
+ endmodule
9
+
10
+ module subwidth (/*AUTOARG*/
11
+ // Outputs
12
+ bus4a
13
+ );
14
+ output [0 :3 ] bus4a;
15
+ endmodule
Original file line number Diff line number Diff line change @@ -2579,15 +2579,17 @@ and `verilog-scan'.")
2579
2579
Also assumes any text inserted since `verilog-scan-cache-tick'
2580
2580
either is ok to parse as a non-comment, or `verilog-insert' was used."
2581
2581
(unless (or (and verilog-scan-cache-preserving
2582
- (eq verilog-scan-cache-preserving (current-buffer)))
2582
+ (eq verilog-scan-cache-preserving (current-buffer))
2583
+ verilog-scan-cache-tick)
2583
2584
(equal verilog-scan-cache-tick (buffer-modified-tick)))
2584
- (setq verilog-scan-cache-tick (buffer-modified-tick))
2585
2585
(save-excursion
2586
2586
(let ((was-mod (buffer-modified-p))
2587
2587
(buffer-read-only nil))
2588
2588
(remove-text-properties (point-min) (point-max) '(v-cmt nil))
2589
2589
(verilog-scan-region (point-min) (point-max))
2590
- (unless was-mod (set-buffer-modified-p nil))))))
2590
+ (unless was-mod (set-buffer-modified-p nil))
2591
+ ;; Set tick last, as the property adds modify the buffer
2592
+ (setq verilog-scan-cache-tick (buffer-modified-tick))))))
2591
2593
2592
2594
(defun verilog-inside-comment-p ()
2593
2595
"Check if point inside a comment.
You can’t perform that action at this time.
0 commit comments