Skip to content

Commit

Permalink
Merge pull request eirikpre#219 from joecrop/rel-0-13-8
Browse files Browse the repository at this point in the history
Added syntax highlighting support for sdc/xdc files
  • Loading branch information
joecrop authored Jan 18, 2024
2 parents 5e82c44 + 4347b18 commit 2a36ff1
Show file tree
Hide file tree
Showing 11 changed files with 724 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ More details can be found on the [Releases](https://github.com/eirikpre/VSCode-S
- 💡 Back-end Language Server for Systemverilog
- 💡 Complete syntax highlighting

### [0.13.9]

- Added basic syntax highlighting support for sdc/xdc files inspired by [https://github.com/mshr-h/vscode-verilog-hdl-support](vscode-verilog-hdl-support) by `joecrop`

### [0.13.8]

- Corrected icons for light themes by `joecrop`
Expand Down
24 changes: 24 additions & 0 deletions configs/scd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"comments": {
"lineComment": "#"
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
14 changes: 13 additions & 1 deletion configs/verilogFileList.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"comments": {
"lineComment": ["//", "#"]
}
},
"brackets": [
["{", "}"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["(", ")"]
],
"surroundingPairs": [
["{", "}"],
["(", ")"]
]
}
40 changes: 39 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "systemverilog",
"displayName": "SystemVerilog - Language Support",
"description": "Language support for Verilog and SystemVerilog.",
"version": "0.13.8",
"version": "0.13.9",
"publisher": "eirikpre",
"author": {
"name": "Eirik Prestegårdshus",
Expand Down Expand Up @@ -155,6 +155,34 @@
"light": "./resources/f_light.svg",
"dark": "./resources/f_dark.svg"
}
},
{
"id": "sdc",
"aliases": [
"Synopsys Design Constraints"
],
"extensions": [
".sdc"
],
"configuration": "./configs/sdc.json",
"icon": {
"light": "./resources/sdc_light.svg",
"dark": "./resources/sdc_dark.svg"
}
},
{
"id": "xdc",
"aliases": [
"Xilinx Design Constraints"
],
"extensions": [
".xdc"
],
"configuration": "./configs/sdc.json",
"icon": {
"light": "./resources/sdc_light.svg",
"dark": "./resources/sdc_dark.svg"
}
}
],
"snippets": [
Expand Down Expand Up @@ -221,6 +249,16 @@
"language": "verilog-filelist",
"scopeName": "source.verilog-filelist",
"path": "./syntaxes/verilog-filelist.json"
},
{
"language": "sdc",
"scopeName": "source.sdc",
"path": "./syntaxes/sdc.json"
},
{
"language": "xdc",
"scopeName": "source.sdc",
"path": "./syntaxes/sdc.json"
}
],
"configuration": [
Expand Down
Binary file modified resources/VSCode_SystemVerilog_Icons.fig
Binary file not shown.
3 changes: 3 additions & 0 deletions resources/sdc_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/sdc_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2a36ff1

Please sign in to comment.