Skip to content

Commit 88d3787

Browse files
authored
Merge pull request #215 from joecrop/sec-1-9-2024
Added filetype icons and support for syntax highlighting of va/vams
2 parents 1258de5 + cd5c40a commit 88d3787

File tree

15 files changed

+326
-7
lines changed

15 files changed

+326
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This VS Code extension provides features to read, navigate and write SystemVeril
4848

4949
## Settings
5050

51-
- `systemverilog.includeIndexing`: _String_, Files included for indexing \([glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns)\). Examples:
51+
- `systemverilog.includeIndexing`: _Array_, Files included for indexing \([glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns)\). Examples:
5252
- Include files within the workspace's rtl folder (`*` at front of pattern denotes path is relative to workspace root): `**/rtl/**/*.{sv,v,svh,vh}`
5353
- Add all files with a '.svp' extension: `**/*.svp`
5454
- Add files only when in a specific workspace: `/abs/path/to/workspace/rtl/**/*.{sv,v,svh,vh}`

package.json

Lines changed: 103 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,30 @@
5353
"Systemverilog"
5454
],
5555
"extensions": [
56-
".sv",
56+
".sv"
57+
],
58+
"configuration": "./language-configuration.json",
59+
"icon": {
60+
"light": "./resources/sv.svg",
61+
"dark": "./resources/sv.svg"
62+
}
63+
},
64+
{
65+
"id": "systemverilogheader",
66+
"aliases": [
67+
"SystemVerilog",
68+
"systemverilog",
69+
"System Verilog",
70+
"Systemverilog"
71+
],
72+
"extensions": [
5773
".svh"
5874
],
59-
"configuration": "./language-configuration.json"
75+
"configuration": "./language-configuration.json",
76+
"icon": {
77+
"light": "./resources/svh.svg",
78+
"dark": "./resources/svh.svg"
79+
}
6080
},
6181
{
6282
"id": "verilog",
@@ -65,10 +85,60 @@
6585
"verilog"
6686
],
6787
"extensions": [
68-
".v",
88+
".v"
89+
],
90+
"configuration": "./language-configuration.json",
91+
"icon": {
92+
"light": "./resources/v.svg",
93+
"dark": "./resources/v.svg"
94+
}
95+
},
96+
{
97+
"id": "verilogheader",
98+
"aliases": [
99+
"Verilog",
100+
"verilog"
101+
],
102+
"extensions": [
69103
".vh"
70104
],
71-
"configuration": "./language-configuration.json"
105+
"configuration": "./language-configuration.json",
106+
"icon": {
107+
"light": "./resources/vh-light.svg",
108+
"dark": "./resources/vh-dark.svg"
109+
}
110+
},
111+
{
112+
"id": "verilogams",
113+
"aliases": [
114+
"Verilog-AMS",
115+
"VerilogAMS",
116+
"verilogams"
117+
],
118+
"extensions": [
119+
".vams"
120+
],
121+
"configuration": "./language-configuration.json",
122+
"icon": {
123+
"light": "./resources/vams.svg",
124+
"dark": "./resources/vams.svg"
125+
}
126+
},
127+
{
128+
"id": "veriloga",
129+
"aliases": [
130+
"Verilog-A",
131+
"VerilogA",
132+
"veriloga"
133+
],
134+
"extensions": [
135+
".va"
136+
],
137+
"configuration": "./language-configuration.json",
138+
"icon": {
139+
"light": "./resources/va.svg",
140+
"dark": "./resources/va.svg"
141+
}
72142
}
73143
],
74144
"snippets": [
@@ -79,6 +149,14 @@
79149
{
80150
"language": "verilog",
81151
"path": "./snippets/systemverilog.json"
152+
},
153+
{
154+
"language": "systemverilogheader",
155+
"path": "./snippets/systemverilog.json"
156+
},
157+
{
158+
"language": "verilogheader",
159+
"path": "./snippets/systemverilog.json"
82160
}
83161
],
84162
"grammars": [
@@ -92,6 +170,26 @@
92170
"scopeName": "source.systemverilog",
93171
"path": "./syntaxes/systemverilog.tmLanguage.json"
94172
},
173+
{
174+
"language": "systemverilogheader",
175+
"scopeName": "source.systemverilog",
176+
"path": "./syntaxes/systemverilog.tmLanguage.json"
177+
},
178+
{
179+
"language": "verilogheader",
180+
"scopeName": "source.systemverilog",
181+
"path": "./syntaxes/systemverilog.tmLanguage.json"
182+
},
183+
{
184+
"language": "verilogams",
185+
"scopeName": "source.systemverilog",
186+
"path": "./syntaxes/systemverilog.tmLanguage.json"
187+
},
188+
{
189+
"language": "veriloga",
190+
"scopeName": "source.systemverilog",
191+
"path": "./syntaxes/systemverilog.tmLanguage.json"
192+
},
95193
{
96194
"scopeName": "markdown.verilog.codeblock",
97195
"path": "./syntaxes/codeblock.json",
@@ -455,6 +553,7 @@
455553
"@types/vscode": "^1.61.0",
456554
"@typescript-eslint/eslint-plugin": "^5.14.0",
457555
"@typescript-eslint/parser": "^5.14.0",
556+
"@vscode/test-electron": "^2.3.8",
458557
"antlr4ts-cli": "^0.5.0-alpha.4",
459558
"eslint": "^8.11.0",
460559
"eslint-config-airbnb-base": "15.0.0",
@@ -477,7 +576,6 @@
477576
"webpack-cli": "^4.9.2"
478577
},
479578
"dependencies": {
480-
"@vscode/test-electron": "^2.3.8",
481579
"antlr4ts": "^0.5.0-alpha.4",
482580
"child_process": "^1.0.2",
483581
"glob": "^7.2.0",

resources/sv.svg

Lines changed: 4 additions & 0 deletions
Loading

resources/svh.svg

Lines changed: 5 additions & 0 deletions
Loading

resources/v.svg

Lines changed: 4 additions & 0 deletions
Loading

resources/va.svg

Lines changed: 4 additions & 0 deletions
Loading

resources/vams.svg

Lines changed: 4 additions & 0 deletions
Loading

resources/vh-dark.svg

Lines changed: 5 additions & 0 deletions
Loading

resources/vh-light.svg

Lines changed: 5 additions & 0 deletions
Loading

resources/vh.svg

Lines changed: 5 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)