Skip to content

Commit 492778e

Browse files
Syntax highlighting for Filelists (mshr-h#351)
1 parent cec2c93 commit 492778e

File tree

5 files changed

+70
-1
lines changed

5 files changed

+70
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66

7+
## [Unreleased]
8+
9+
- Adds basic syntax highlighting for Verilog Filelists (dot-F files)
10+
711
## [1.5.12] - 2022-12-04
812

913
- Fix hdl_checker support.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Install it from [VS Code Marketplace](https://marketplace.visualstudio.com/items
2121
- VHDL
2222
- Vivado UCF constraints
2323
- Synopsys Design Constraints
24+
- Verilog Filelists (dot-F files)
2425
- Simple Snippets
2526
- Linting support from:
2627
- Icarus Verilog - `iverilog`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"comments": {
3+
"lineComment": "//"
4+
}
5+
}

package.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"onLanguage:vhdl",
2929
"onLanguage:ucf",
3030
"onLanguage:sdc",
31-
"onLanguage:xdc"
31+
"onLanguage:xdc",
32+
"onLanguage:verilog-filelist"
3233
],
3334
"main": "./dist/main.js",
3435
"contributes": {
@@ -115,6 +116,17 @@
115116
".xdc"
116117
],
117118
"configuration": "./configs/sdc.configuration.json"
119+
},
120+
{
121+
"id": "verilog-filelist",
122+
"aliases": [
123+
"Verilog Filelist",
124+
"verilog-filelist"
125+
],
126+
"extensions": [
127+
".f"
128+
],
129+
"configuration": "./configs/verilog-filelist.configuration.json"
118130
}
119131
],
120132
"grammars": [
@@ -163,6 +175,11 @@
163175
"meta.embedded.block.verilog": "source.verilog",
164176
"meta.embedded.block.systemverilog": "source.systemverilog"
165177
}
178+
},
179+
{
180+
"language": "verilog-filelist",
181+
"scopeName": "source.verilog-filelist",
182+
"path": "./syntaxes/verilog-filelist.tmLanguage.json"
166183
}
167184
],
168185
"snippets": [
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"fileTypes": [
4+
"f"
5+
],
6+
"name": "verilog-filelist",
7+
"scopeName": "source.verilog-filelist",
8+
"patterns": [
9+
{
10+
"match": "^\\s*//.*$",
11+
"name": "comment.line"
12+
},
13+
{
14+
"match": "^\\s*#.*$",
15+
"name": "comment.line"
16+
},
17+
{
18+
"match": "^\\s*-f\\s",
19+
"name": "keyword"
20+
},
21+
{
22+
"match": "^\\s*-F\\s",
23+
"name": "keyword"
24+
},
25+
{
26+
"match": "\\$\\(\\w*\\)",
27+
"name": "variable"
28+
},
29+
{
30+
"match": "\\$\\{\\w*\\}",
31+
"name": "variable"
32+
},
33+
{
34+
"match": "\\+incdir\\+",
35+
"name": "entity.name.function"
36+
},
37+
{
38+
"match": "\\+define\\+",
39+
"name": "entity.name.function"
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)