Skip to content

Commit b44314d

Browse files
committed
chore: update for wenyan v0.2.4
1 parent 5bb41b8 commit b44314d

File tree

3 files changed

+24
-41
lines changed

3 files changed

+24
-41
lines changed

package-lock.json

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
{
5555
"language": "wenyan",
5656
"scopeName": "source.wenyan",
57-
"path": "./syntaxes/wenyan.tmGrammar.json"
57+
"path": "./syntaxes/tmGrammar.json"
5858
}
5959
],
6060
"commands": [
@@ -225,7 +225,7 @@
225225
"publish:minor": "standard-version --release-as minor && git push --follow-tags && vsce publish && npm run gh-release",
226226
"publish:patch": "standard-version --release-as patch && git push --follow-tags && vsce publish && npm run gh-release",
227227
"gh-release": "conventional-github-releaser -p angular",
228-
"copy-dist": "npx cpy node_modules/@wenyanlang/cli/index.min.js dist --rename wenyan.js",
228+
"copy-dist": "npx cpy node_modules/@wenyanlang/cli/index.min.js dist --rename wenyan.js && npx cpy node_modules/@wenyanlang/highlight/tmGrammar.json syntaxes",
229229
"vscode:prepublish": "npm run copy-dist && webpack --mode development",
230230
"compile": "npm run copy-dist && webpack --mode development",
231231
"lint": "eslint --ext .ts,.js,.vue --ignore-path .gitignore .",
@@ -241,7 +241,8 @@
241241
"@types/vscode": "^1.41.0",
242242
"@typescript-eslint/eslint-plugin": "2.15.0",
243243
"@typescript-eslint/parser": "2.15.0",
244-
"@wenyanlang/cli": "0.2.2",
244+
"@wenyanlang/cli": "0.2.4",
245+
"@wenyanlang/highlight": "0.0.6",
245246
"conventional-github-releaser": "3.1.3",
246247
"cpy-cli": "^3.0.0",
247248
"eslint": "6.8.0",

syntaxes/wenyan.tmGrammar.json renamed to syntaxes/tmGrammar.json

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -34,49 +34,25 @@
3434
},
3535
"keywords": {
3636
"patterns": [
37-
{
38-
"name": "storage.modifier",
39-
"match": "吾有|今有|有"
40-
},
4137
{
4238
"name": "storage.type",
43-
"match": "數|列|言|術|爻|物"
44-
},
45-
{
46-
"name": "keyword.control",
47-
"match": "恆為是"
39+
"match": "元|物|爻|術|言|列|數"
4840
},
4941
{
5042
"name": "keyword.control",
51-
"match": "若非|若|者|夫"
43+
"match": "乃行是術曰|若其不然者|乃止是遍|乃歸空無|欲行是術|若其然者|其物如是|乃得矣|恆為是|之術也|必先得|是術曰|之物也|云云|中之|為是|乃止|若非|或若|乃得|是謂|者|若|遍|凡|也"
5244
},
5345
{
5446
"name": "keyword.control",
55-
"match": "乃得|乃歸空無|是謂|之術也|必先得|是術曰|乃行是術曰|欲行是術|也|云云|凡|中之|恆為是|為是|遍|乃止|其物如是"
56-
},
57-
{
58-
"name": "keyword.operator",
59-
"match": "等於|不等於|不大於|不小於|大於|小於"
60-
},
61-
{
62-
"name": "keyword.operator",
63-
"match": "吾嘗觀|之書|方悟|之義"
64-
},
65-
{
66-
"name": "keyword.operator",
67-
"match": "加|減|乘|除|中有陽乎|中無陰乎|變|所餘幾何|以|於|之長|之|充|銜|其餘"
68-
},
69-
{
70-
"name": "keyword.operator",
71-
"match": "昔之|今|是矣|其|不復存矣|是"
47+
"match": "蓋謂|或云"
7248
},
7349
{
7450
"name": "keyword.operator",
75-
"match": "或云|蓋謂"
51+
"match": "中有陽乎|中無陰乎|不等於|不大於|不小於|等於|大於|小於|加|乘|除|以|於|減"
7652
},
7753
{
7854
"name": "keyword.other",
79-
"match": "書之|名之曰|施|曰|噫|取|矣"
55+
"match": "不知何禍歟|不復存矣|如事不諧|姑妄行此|吾嘗觀|之禍歟|乃作罷|名之曰|書之|以施|之禍|嗚呼|之義|昔之|方悟|是矣|今有|吾有|之書|物之|夫|中|今|取|噫|曰|施|豈|有"
8056
}
8157
]
8258
},
@@ -94,7 +70,7 @@
9470
"comment-blocks": {
9571
"name": "comment.block",
9672
"begin": "(注曰|疏曰|批曰)。(「「|『)",
97-
"end": "(」」|』)",
73+
"end": "(」」|』)",
9874
"patterns": [
9975
{
10076
"name": "constant.character",
@@ -106,16 +82,16 @@
10682
"patterns": [
10783
{
10884
"name": "constant.numeric",
109-
"match": "又|負|零|一|二|三|四|五|六|七|八|九|十|百|千|萬|億|兆|京|垓|秭||溝|澗|正|載|極|恆河沙|阿僧祇|那由他|不可思議|無量大數|分|釐|毫|絲|忽|微|纖|沙|塵|埃|渺|漠|模糊|逡巡|須臾|瞬息|彈指|剎那|六德|虛|空|清|淨"
85+
"match": "負|·|又|零|〇|一|二|三|四|五|六|七|八|九|十|百|千|萬|億|兆|京|垓|秭||溝|澗|正|載|極|分|釐|毫|絲|忽|微|纖|沙|塵|埃|渺|漠"
11086
},
11187
{
11288
"name": "constant.language",
113-
"match": "陰|陽"
89+
"match": "陰|陽|其"
11490
},
11591
{
11692
"name": "string.quoted",
117-
"begin": "(「「|『)",
118-
"end": "(」」|』)",
93+
"begin": "「「|『",
94+
"end": "」」|』",
11995
"patterns": [
12096
{
12197
"name": "constant.character",
@@ -129,7 +105,7 @@
129105
"patterns": [
130106
{
131107
"name": "punctuation.separator",
132-
"match": ""
108+
"match": "|、"
133109
}
134110
]
135111
},

0 commit comments

Comments
 (0)