pytv-syntax-highlighter
Syntax highlighter and Snippets for New PyTV (Python Templated Verilog).
Features
- Highlight C++/Verilog code written in PyTV-style Python file.
- Auto-completion of C++/Verilog PyTV-style code block template using snippets.
Extension Settings
To obtain more comfortable coding experience of PyTV, install highlight
extension in Vscode and append the following content to your workspace settings.json
:
{
"highlight.regexes": {
"(\\s*#/)": {
"filterLanguageRegex": "python",
"filterFileRegex": ".*BehavModel.*",
"regexFlags": "",
"decorations": [
{
"color": "#FFEB3B",
"fontWeight": "bold"
}
]
},
"(#/)":{
"filterLanguageRegex": "python",
"decorations": [
{
"color": "#FF9800",
"fontWeight": "bold"
}
]
}
}
}
Known Issues
See Folder known_issues
.
Release Notes
0.1.0
Initial release of PyTV Syntax Highlighter, enable highlighting of C++ and Verilog Code in *.py
files.
0.1.1
You now need to type #! LANGUAGE_MODE = "CPP"
or #! LANGUAGE_MODE = "CPP_HEADER"
to begin a C++ highlight block, and type #!
to end it. The highlighter will highlight them once you have entered it correctly.
0.1.2
Add C++/Verilog code block snippets for the add-on. The keywords for them are cpp
and verilog
.
0.1.3
- A
#/
will be inserted on pressing Enter
if the current line contains #/
.
0.1.4
- Now this extension can coexist with the old version of PyTV extension.
- You need to enter
Tab
when using the snippet instead of Enter
.