This repository has been archived by the owner on Dec 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
schema.js
95 lines (73 loc) · 1.93 KB
/
schema.js
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
module.exports =
{
"scope": {
"type": "string",
"enum": [
// names of attributes (e.g. `class` in `<div class=something>`)
"attribute",
// comments (e.g. this line of this file)
"comment",
// names of constant values (e.g. `MAX_LENGTH`)
"constant",
// names of built-in constant values (e.g. `NULL`, `true`)
"constant.builtin",
// names of data constructors
"constructor",
// names of built-in data constructors
"constructor.builtin",
// code embedded within another literal (should reset to the default color)
"embedded",
// escape sequence in a literal (e.g. `\t`)
"escape",
// names of functions
"function",
// names of built-in functions
"function.builtin",
// keywords with special meaning (e.g. `if`, `class`)
"keyword",
// numbers (e.g. `123`, `0xA0FFD1`)
"number",
// Operators (e.g. `+`, `===`)
"operator",
// names of properties (e.g. `age` in `person.age`)
"property",
// names of built-in properties
"property.builtin",
// punctuation characters
"punctuation",
"punctuation.bracket",
"punctuation.delimiter",
"punctuation.special",
// string literals
"string",
// string-like literals (e.g. regexes, symbols)
"string.special",
// names of tags (e.g. `div` in `<div></div>`)
"tag",
// names of types
"type",
// names of built-in types (e.g. `int`, `void`)
"type.builtin",
// names of variables
"variable",
// names of built-in variables (e.g. `this`, `self`, `__dirname`)
"variable.builtin"
]
},
"is-definition": {
"type": "string"
},
"injection-language": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
]
},
"injection-content": {
"type": "object"
}
}