-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjson-mini.mtsx
More file actions
23 lines (23 loc) · 783 Bytes
/
Copy pathjson-mini.mtsx
File metadata and controls
23 lines (23 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
name: ["Icey JSON Mini", ".json", ".json5"]
comment: {startsWith: "//"}
comment: {startsWith: "/*", endsWith: "*/"}
styles: [
"string", #00A680, #00DBA9, @I
"ekeyword", #FF0044, #F00, @BI
"yes", #00C700, #0F0, @BI
"default" > "operator"
"label" > "label", @B
"comment", #CCCCDD$225577, #CCCCDD$002255
]
contains: [
{match: /(\".*?\"\s*)(\:)/, 1: "label"}
{match: /(\".*?\"\s*)/, 0: "string"}
{match: /([a-zA-Z0-9]+?\s*)(\:)/, 1: "label"}
{match: /(\'.*?\'\s*)(\:)/, 1: "label"}
{match: /(\'.*?\'\s*)/, 0: "string"}
{builtin: #JAVA_NUMBER#}
{match: keywordsToRegex("false null NaN"), 0: "ekeyword"}
{match: keywordsToRegex("true infinity"), 0: "yes"}
]
}