File tree 3 files changed +17
-0
lines changed
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ Options
33
33
-------
34
34
- let g: verilog_instance_skip_last_coma = {0/1}
35
35
- When the variable is 1, last printed line will skip the coma. Default value is 0.
36
+ - let g: verilog_instance_keep_comments = {0/1}
37
+ - When the variable is 1, comments will be kept (block comments /* * / not support!). Default value is 0.
38
+ - let g: verilog_instance_keep_empty_lines = {0/1}
39
+ - When the variable is 1, empty lines in your code will be printed. Default value is 0.
36
40
37
41
Other vim plugins for Verilog/SystemVerilog
38
42
---------------------------------------
Original file line number Diff line number Diff line change @@ -35,6 +35,16 @@ OPTIONS *verilog-instance-options*
35
35
*g:verilog_instance_skip_last_coma*
36
36
let g:verilog_instance_skip_last_coma = {0/1}
37
37
When the variable is 1, last printed line will skip the coma.
38
+ The default value is 0.
39
+
40
+ *g:verilog_instance_keep_comments*
41
+ let g:verilog_instance_keep_comments = {0/1}
42
+ When the variable is 1, comments will be kept (block comments /* */ not support!).
43
+ The default value is 0.
44
+
45
+ *g:verilog_instance_keep_empty_lines*
46
+ let g:verilog_instance_keep_empty_lines = {0/1}
47
+ When the variable is 1, empty lines in your code will be printed.
38
48
The default value is 0.
39
49
40
50
------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 50
50
# get indentation length from 1st non empty line
51
51
if indent_len == - 1 and not (pattern_empty_line .match (line )):
52
52
indent_len = len (re .match (r'^\s*' , line ).group (0 ))
53
+ # handle empty line
54
+ if pattern_empty_line .match (line ) is not None :
55
+ contents .append ('' )
53
56
# handle comments
54
57
if wait_to_close_comment :
55
58
if pattern_close_comment .search (line ):
You can’t perform that action at this time.
0 commit comments