/
wenyan.tmGrammar.json
126 lines (126 loc) · 2.98 KB
/
wenyan.tmGrammar.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"scopeName": "source.wenyan",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#constants"
},
{
"include": "#operators"
},
{
"include": "#symbols"
},
{
"include": "#expression"
},
{
"include": "#comments"
}
],
"repository": {
"expression": {
"patterns": [
{
"include": "#variables"
}
]
},
"keywords": {
"patterns": [
{
"name": "storage.modifier",
"match": "吾有|今有|有"
},
{
"name": "storage.type",
"match": "數|列|言|術|爻|物"
},
{
"name": "keyword.control",
"match": "恆為是"
},
{
"name": "keyword.control",
"match": "若非|若|者|夫"
},
{
"name": "keyword.control",
"match": "乃得|乃歸空無|是謂|之術也|必先得|是術曰|乃行是術曰|欲行是術|也|云云|凡|中之|恆為是|為是|遍|乃止|其物如是"
},
{
"name": "keyword.operator",
"match": "等於|不等於|不大於|不小於|大於|小於"
},
{
"name": "keyword.operator",
"match": "加|減|乘|除|中有陽乎|中無陰乎|變|所餘幾何|以|於|之長|之|充|銜|其餘"
},
{
"name": "keyword.operator",
"match": "昔之|今|是矣|其|不復存矣"
},
{
"name": "keyword.other",
"match": "書之|名之曰|施|曰|噫"
}
]
},
"comments": {
"name": "comment.line",
"begin": "注曰|疏曰|批曰",
"end": "$",
"patterns": [
{
"name": "constant.character",
"match": "\\\\."
}
]
},
"constants": {
"patterns": [
{
"name": "constant.numeric",
"match": "零|一|二|三|四|五|六|七|八|九|十|百|千|萬|億|兆|京|垓|秭|穣|溝|澗|正|載|極|恆河沙|阿僧祇|那由他|不可思議|無量大數|分|釐|毫|絲|忽|微|纖|沙|塵|埃|渺|漠|模糊|逡巡|須臾|瞬息|彈指|剎那|六德|虛|空|清|淨"
},
{
"name": "constant.language",
"match": "陰|陽"
},
{
"name": "string.quoted",
"begin": "「「",
"end": "」」",
"patterns": [
{
"name": "constant.character",
"match": "\\\\."
}
]
}
]
},
"symbols": {
"patterns": [
{
"name": "punctuation.separator",
"match": "。"
}
]
},
"variables": {
"name": "variable.other",
"begin": "「",
"end": "」",
"patterns": [
{
"name": "constant.character",
"match": "\\\\."
}
]
}
}
}