Skip to content

Commit 6a344b3

Browse files
authored
add tcl support (#440)
1 parent 2a7b315 commit 6a344b3

File tree

4 files changed

+5571
-0
lines changed

4 files changed

+5571
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Install it from [VS Code Marketplace](https://marketplace.visualstudio.com/items
2121
- Vivado UCF constraints
2222
- Synopsys Design Constraints
2323
- Verilog Filelists (dot-F files)
24+
- Tcl
2425
- Simple Snippets
2526
- Linting support from:
2627
- Icarus Verilog - `iverilog`
@@ -321,3 +322,5 @@ You can check it by opening the **Output** pane in VS Code and choose _Verilog_
321322
- [ericsonj/verilog-format](https://github.com/ericsonj/verilog-format)
322323
- [thomasrussellmurphy/istyle-verilog-formatter](https://github.com/thomasrussellmurphy/istyle-verilog-formatter)
323324
- [slang C++ docs](https://sv-lang.com/)
325+
- [bitwisecook/vscode-tcl: Tcl for Visual Studio Code](https://github.com/bitwisecook/vscode-tcl)
326+
- `configs/tcl.configuration.json` and `syntaxes/tcl.tmlanguage.json` are obtained from the repo.

configs/tcl.configuration.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"capabilities": {
3+
"documentOnTypeFormattingProvider": {
4+
"firstTriggerCharacter": "}",
5+
"moreTriggerCharacter": [
6+
";",
7+
","
8+
]
9+
},
10+
"documentRangeFormattingProvider": "true",
11+
"renameProvider": "true",
12+
"documentHighlightProvider": "true",
13+
"referencesProvider": "true"
14+
},
15+
"comments": {
16+
// symbol used for single line comment. Remove this entry if your language does not support line comments
17+
"lineComment": "#"
18+
},
19+
// symbols used as brackets
20+
"brackets": [
21+
[
22+
"{",
23+
"}"
24+
],
25+
[
26+
"[",
27+
"]"
28+
],
29+
[
30+
"(",
31+
")"
32+
]
33+
],
34+
// symbols that are auto closed when typing
35+
"autoClosingPairs": [
36+
{
37+
"open": "{",
38+
"close": "}"
39+
},
40+
{
41+
"open": "[",
42+
"close": "]"
43+
},
44+
{
45+
"open": "(",
46+
"close": ")"
47+
},
48+
{
49+
"open": "\"",
50+
"close": "\"",
51+
"notIn": [
52+
"string"
53+
]
54+
}
55+
],
56+
// symbols that that can be used to surround a selection
57+
"surroundingPairs": [
58+
[
59+
"{",
60+
"}"
61+
],
62+
[
63+
"[",
64+
"]"
65+
],
66+
[
67+
"(",
68+
")"
69+
],
70+
[
71+
"\"",
72+
"\""
73+
]
74+
]
75+
}

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"onLanguage:bsv",
2929
"onLanguage:vhdl",
3030
"onLanguage:ucf",
31+
"onLanguage:tcl",
3132
"onLanguage:sdc",
3233
"onLanguage:xdc",
3334
"onLanguage:verilog-filelist"
@@ -108,6 +109,19 @@
108109
],
109110
"configuration": "./configs/sdc.configuration.json"
110111
},
112+
{
113+
"id": "tcl",
114+
"aliases": [
115+
"Tcl",
116+
"tcl"
117+
],
118+
"extensions": [
119+
".tcl",
120+
"tm",
121+
"tk"
122+
],
123+
"configuration": "./configs/tcl.configuration.json"
124+
},
111125
{
112126
"id": "xdc",
113127
"aliases": [
@@ -161,6 +175,11 @@
161175
"scopeName": "source.sdc",
162176
"path": "./syntaxes/sdc.tmLanguage.json"
163177
},
178+
{
179+
"language": "tcl",
180+
"scopeName": "source.tcl",
181+
"path": "./syntaxes/tcl.tmlanguage.json"
182+
},
164183
{
165184
"language": "xdc",
166185
"scopeName": "source.sdc",

0 commit comments

Comments
 (0)