-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlgui2TextType.json
More file actions
119 lines (119 loc) · 4.2 KB
/
lgui2TextType.json
File metadata and controls
119 lines (119 loc) · 4.2 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://www.lavishsoft.com/schema/lgui2TextType.json",
"description": "A LavishGUI2 Text Type",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A name for the Text Type, which will be specified in Text Scanners for highlighting"
},
"base": {
"type": "string",
"enum": [
"plain",
"character",
"sequence",
"container"
]
}
},
"oneOf": [
{
"properties": {
"type": {
"const": "plain"
},
"terminators": {
"type": "string",
"description": "a list of single-character strings, each indicating the end of the Text segment"
}
},
"required": [
"type",
"terminators"
]
},
{
"properties": {
"type": {
"const": "character"
},
"character": {
"type": "string",
"description": "a single-character string specifying the one and only valid character for this Text segment"
}
},
"required": [
"type",
"character"
]
},
{
"properties": {
"type": {
"const": "sequence"
},
"sequence": {
"type": "string",
"description": "a string specifying the one and only valid sequence for this Text segment"
}
},
"required": [
"type",
"sequence"
]
},
{
"properties": {
"type": {
"const": "container"
},
"subOpenType": {
"type": "string",
"description": "The name of the Text Type that opens a new instance of this container type, if found within. For example, \"json_{\" would open (start) a new JSON Object"
},
"escapeType": {
"type": "string",
"description": "The name of the Text Type that enables escaping. (Tip: Use the built-in \"escape\" type.)"
},
"terminatorTypes": {
"type": "object",
"description": "Defines terminators for the container. Text Type names map to an object containing options for terminating the container with that Text Type",
"additionalProperties": {
"type": "object",
"properties": {
"allowedInside": {
"type": "boolean",
"default":true
},
"escapeable":{
"type":"boolean",
"default":false
}
}
}
},
"characterTypes": {
"type": "object",
"description": "Maps single characters (given as property names) to Text Types for processing",
"additionalProperties": {
"type": "string",
"description": "The name of the Text Type that handles the given character"
}
},
"sequenceTypes": {
"type": "object",
"description": "Maps character sequences (given as property names) to Text Types for processing",
"additionalProperties": {
"type": "string",
"description": "The name of the Text Type that handles the given sequence"
}
}
},
"required": [
"type"
]
}
]
}