From aa3b3b529a332fc93abca061b67b503f156d799e Mon Sep 17 00:00:00 2001
From: Kirigaya <1193466151@qq.com>
Date: Mon, 6 Jan 2025 17:09:04 +0800
Subject: [PATCH] =?UTF-8?q?netlist:=20=E6=94=AF=E6=8C=81=E4=BD=BF=E7=94=A8?=
=?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6=E4=BB=A3=E8=A1=A8=E8=B7=AF?=
=?UTF-8?q?=E5=BE=84=20|=20=E6=94=AF=E6=8C=81=20ys=20=E8=84=9A=E6=9C=AC?=
=?UTF-8?q?=E7=AE=80=E5=8D=95=20ls?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/ys.configuration.json | 16 +++++++++++++
images/svg/dark/ys.svg | 5 ++++
images/svg/light/ys.svg | 5 ++++
syntaxes/ys.json | 44 ++++++++++++++++++++++++++++++++++++
4 files changed, 70 insertions(+)
create mode 100644 config/ys.configuration.json
create mode 100644 images/svg/dark/ys.svg
create mode 100644 images/svg/light/ys.svg
create mode 100644 syntaxes/ys.json
diff --git a/config/ys.configuration.json b/config/ys.configuration.json
new file mode 100644
index 0000000..5e14c1d
--- /dev/null
+++ b/config/ys.configuration.json
@@ -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"]}
+ ]
+}
\ No newline at end of file
diff --git a/images/svg/dark/ys.svg b/images/svg/dark/ys.svg
new file mode 100644
index 0000000..9595253
--- /dev/null
+++ b/images/svg/dark/ys.svg
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/images/svg/light/ys.svg b/images/svg/light/ys.svg
new file mode 100644
index 0000000..9595253
--- /dev/null
+++ b/images/svg/light/ys.svg
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/syntaxes/ys.json b/syntaxes/ys.json
new file mode 100644
index 0000000..76c4420
--- /dev/null
+++ b/syntaxes/ys.json
@@ -0,0 +1,44 @@
+{
+ "name": "ys",
+ "scopeName": "source.ys",
+ "patterns": [
+ {
+ "include": "#comment"
+ },
+ {
+ "name": "keyword.control.ys",
+ "match": "(?=|<|>|&&|\\|\\||!|&|\\||\\^|~|<<|>>)\\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"
+}
\ No newline at end of file