put block labels into snippet variables

This commit is contained in:
Boone Severson 2015-03-04 09:40:10 -08:00
parent 7620866b4a
commit 00dfa2e27b

View File

@ -76,21 +76,21 @@ endcase
endsnippet
snippet always_comb "Combinational always block"
always_comb begin : ${1:statement_label}
always_comb begin ${1:: statement_label}
$0
end : $1
end $1
endsnippet
snippet always_ff "Sequential logic"
always_ff @(posedge ${1:clk}) begin : ${2:statement_label}
always_ff @(posedge ${1:clk}) begin ${2:: statement_label}
$0
end : $2
end $2
endsnippet
snippet always_latch "Latched logic"
always_latch begin : ${1:statement_label}
always_latch begin ${1:: statement_label}
$0
end : $1
end $1
endsnippet
snippet module "Module block"