netlist: 支持使用特殊字符代表路径 | 支持 ys 脚本简单 ls
This commit is contained in:
parent
11770385ce
commit
aa3b3b529a
16
config/ys.configuration.json
Normal file
16
config/ys.configuration.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"comments": {
|
||||||
|
"lineComment": "#"
|
||||||
|
},
|
||||||
|
"brackets": [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
"autoClosingPairs": [
|
||||||
|
{"open":"(", "close":")", "notIn":["string", "comment"]},
|
||||||
|
{"open":"[", "close":"]", "notIn":["string", "comment"]},
|
||||||
|
{"open":"{", "close":"}", "notIn":["string", "comment"]},
|
||||||
|
{"open":"\"", "close":"\"", "notIn":["string", "comment"]}
|
||||||
|
]
|
||||||
|
}
|
5
images/svg/dark/ys.svg
Normal file
5
images/svg/dark/ys.svg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path
|
||||||
|
d="m21.492 2.5102s-7.252-0.353-12.966 7.478c-4.385 6.008-6.018 11.504-6.018 11.504l1.842-0.95c1.366-2.372 2.078-3.35 3.417-4.745 2.401 0.702 4.907 0.617 7.08-1.899-1.898-0.531-3.416-0.408-5.657-0.18 2.516-1.718 4.234-2.098 6.607-1.718l0.949-1.898c-1.709-0.323-2.848-0.352-4.537 0.038 1.87-1.32 3.17-2.06 5.486-1.937l1.148-1.832c-1.48-0.104-2.372 0.057-4.072 0.475 1.529-1.386 2.924-2.012 4.955-2.136 0 0 0.997-1.793 1.766-2.202z"
|
||||||
|
fill="#cb81da" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 555 B |
5
images/svg/light/ys.svg
Normal file
5
images/svg/light/ys.svg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path
|
||||||
|
d="m21.492 2.5102s-7.252-0.353-12.966 7.478c-4.385 6.008-6.018 11.504-6.018 11.504l1.842-0.95c1.366-2.372 2.078-3.35 3.417-4.745 2.401 0.702 4.907 0.617 7.08-1.899-1.898-0.531-3.416-0.408-5.657-0.18 2.516-1.718 4.234-2.098 6.607-1.718l0.949-1.898c-1.709-0.323-2.848-0.352-4.537 0.038 1.87-1.32 3.17-2.06 5.486-1.937l1.148-1.832c-1.48-0.104-2.372 0.057-4.072 0.475 1.529-1.386 2.924-2.012 4.955-2.136 0 0 0.997-1.793 1.766-2.202z"
|
||||||
|
fill="#cb81da" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 555 B |
44
syntaxes/ys.json
Normal file
44
syntaxes/ys.json
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"name": "ys",
|
||||||
|
"scopeName": "source.ys",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#comment"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "keyword.control.ys",
|
||||||
|
"match": "(?<![/\\w])\\b(?:read_verilog|read_vhdl|read_ilang|write_verilog|write_ilang|write_blif|write_edif|write_json|hierarchy|proc|flatten|splitnets|delete|rename|submod|synth|synth_xilinx|synth_ice40|synth_ecp5|opt|opt_clean|opt_expr|opt_merge|opt_muxtree|opt_reduce|opt_share|techmap|dfflegalize|abc|clean|check|stat|show|log|assert|script|help|exit|history|shell|dump|debug|trace|sim|memory|fsm|clk2fflogic|async2sync|wreduce|plugin|yosys|design)\\b(?![/\\w])"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "keyword.operator.ys",
|
||||||
|
"match": "\\b(?:\\+|-|\\*|/|%|==|!=|<=|>=|<|>|&&|\\|\\||!|&|\\||\\^|~|<<|>>)\\b"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "keyword.function.ys",
|
||||||
|
"match": "\\b(?:\\w+)\\b(?=\\s*\\()"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "string.quoted.double.ys",
|
||||||
|
"match": "\"(?:\\\\\"|[^\"])*\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "comment.line.ys",
|
||||||
|
"match": "#.*$"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "support.function.parameter.ys",
|
||||||
|
"match": "-[a-zA-Z0-9_\\-]+"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"comment": {
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"match": "^\\s*#.*$",
|
||||||
|
"name": "comment.line.number-sign.ys"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"uuid": "12345678-1234-1234-1234-123456789012"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user