forked from seiyria/sublime-dreams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dream Maker (DMF).JSON-tmLanguage
101 lines (101 loc) · 3.38 KB
/
Dream Maker (DMF).JSON-tmLanguage
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
{
"fileTypes": [
"dmf"
],
"keyEquivalent": "^~C",
"name": "Dream Maker Interface",
"patterns": [
{
"match": "((#?\\b[0-9a-fA-F]*)|\\b(([0-9]+(,|x)?[0-9]*)|(\\.[0-9]+)))\\b",
"name": "constant.numeric.dm"
},
{
"match": "(^(macro|menu)|(\\b(window|elem)))\\b",
"name": "storage.type.dm"
},
{
"match": "\\b(true|false|none)\\b",
"name": "variable.language.dm"
},
{
"match": "\\b([A-Z_]+)\\b",
"name": "constant.language.dm"
},
{
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.dm"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.dm"
}
},
"name": "string.quoted.double.dm",
"patterns": [
{
"include": "#string_escaped_char"
},
{
"include": "#string_embedded_expression"
}
]
},
{
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.dm"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.dm"
}
},
"name": "string.quoted.single.dm",
"patterns": [
{
"include": "#string_escaped_char"
}
]
},
{
"begin": "(?x)\n \t\t(?: ^ # begin-of-line\n \t\t |\n \t\t (?: (?= \\s ) (?<!else|new|return) (?<=\\w) # or word + space before name\n \t\t | (?= \\s*[A-Za-z_] ) (?<!&&) (?<=[*&>]) # or type modifier before name\n \t\t )\n \t\t)\n \t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()\n \t\t(\n \t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n \t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n \t\t)\n \t\t \\s*(?=\\()",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.function.leading.dm"
},
"3": {
"name": "entity.name.function.dm"
},
"4": {
"name": "punctuation.definition.parameters.dm"
}
},
"end": "(?<=\\})|(?=#)|(;)?",
"name": "meta.function.dm",
"patterns": [
{
"include": "#comments"
},
{
"include": "#parens"
},
{
"match": "\\bconst\\b",
"name": "storage.modifier.dm"
},
{
"include": "#block"
}
]
}
],
"scopeName": "source.dmf",
"uuid": "25066DC2-6B1D-11D9-9D5B-000D93589AF6"
}