-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
23 lines (15 loc) · 881 Bytes
/
README
File metadata and controls
23 lines (15 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
This is a mirror of http://www.vim.org/scripts/script.php?script_id=4743
This script is maintained on github at:
https://github.com/nachumk/systemverilog.vim
Installation instructions for Pathogen can be found here: https://github.com/nachumk/systemverilog.vim#pathogen-install.
These scripts indent and highlight SystemVerilog. It is set to load for Verilog and SystemVerilog files.
Comments are not touched! No indent is done on comments at all. Don't attempt to comment in the middle of a block comment, it won't know that it is a comment and therefore it will attempt to indent.
Two single line statements that have no begin are indented the same:
if(a)
if(b)
c = 1;
will actually indent as:
if(a)
if(b)
c = 1;
This is because it is not easy to detect infinitely long indents of this sort. By using this convention this type of code can be indented properly.