-
Notifications
You must be signed in to change notification settings - Fork 2
/
euphoria.tmLanguage.json
123 lines (123 loc) · 3.6 KB
/
euphoria.tmLanguage.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
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Euphoria",
"scopeName": "source.euphoria",
"patterns": [
{ "include": "#comments" },
{ "include": "#entities" },
{ "include": "#keywords" },
{ "include": "#strings" }
],
"repository": {
"comments": {
"patterns": [
{
"name": "comment.line.double-dash.euphoria",
"match": "((?:--).*)$"
},
{
"name": "comment.block.euphoria",
"begin": "/\\*",
"end": "\\*/"
}
]
},
"entities": {
"patterns": [
{
"match": "^\\s*(namespace)\\s+(\\w+)$",
"captures":{
"1": { "name": "keyword.other.euphoria" },
"2": { "name": "entity.name.section" }
}
},
{
"match": "^\\s*(?:(deprecate)\\s+)?(?:(public|export|global|override)\\s+)?(function|procedure)\\s+(\\w+)",
"captures": {
"1": { "name": "invalid.deprecated" },
"2": { "name": "storage.modifier.euphoria" },
"3": { "name": "storage.type.function" },
"4": { "name": "entity.name.function" }
}
},
{
"match": "^\\s*(?:(deprecate)\\s+)?(?:(public|export|global|override)\\s+)?(type)\\s+(\\w+)",
"captures": {
"1": { "name": "invalid.deprecated" },
"2": { "name": "storage.modifier.euphoria" },
"3": { "name": "storage.type.function" },
"4": { "name": "entity.name.type" }
}
}
]
},
"keywords": {
"patterns": [
{
"name": "keyword.control.euphoria",
"match": "\\b(break|case|continue|do|else|elsif|entry|exit|for|goto|if|label|loop|retry|return|switch|then|until|while)\\b"
},
{
"name": "keyword.operator.euphoria",
"match": "\\b(!|\\?|and|not|or|xor)\\b"
},
{
"name": "keyword.other.euphoria",
"match": "\\b(as|by|constant|elsedef|elsifdef|end|enum|fallthru|ifdef|include|namespace|routine|to|with|without)\\b"
},
{
"name": "storage.modifier.euphoria",
"match": "\\b(deprecate|export|global|override|public)\\b"
},
{
"name": "storage.type.euphoria",
"match": "\\b(enum|constant|function|procedure|type)\\b"
},
{
"name": "support.function.euphoria",
"match": "\\b(abort|and_bits|append|arctan|c_func|c_proc|call|call_func|call_proc|clear_screen|close|command_line|compare|cos|date|delete|delete_routine|equal|find|find_from|floor|get_key|getc|getenv|gets|hash|head|include_paths|insert|length|log|machine_func|machine_proc|match|match_from|mem_copy|mem_set|not_bits|open|option_switches|or_bits|peek|peek2s|peek2u|peek4s|peek4u|peek_string|peeks|platform|poke|poke2|poke4|position|power|prepend|print|printf|puts|rand|remainder|remove|repeat|replace|routine_id|sin|splice|sprintf|sqrt|system|system_exec|tail|tan|task_clock_start|task_clock_stop|task_create|task_list|task_schedule|task_self|task_status|task_suspend|task_yield|time|trace|xor_bits)\\b"
},
{
"name": "support.type.euphoria",
"match": "\\b(atom|integer|object|sequence)\\b"
}
]
},
"strings": {
"patterns": [
{
"name": "string.quoted.single.euphoria",
"begin": "'",
"end": "'",
"patterns": [
{
"name": "constant.character.escape.euphoria",
"match": "\\\\."
}
]
},
{
"name": "string.quoted.double.euphoria",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.euphoria",
"match": "\\\\."
}
]
},
{
"name": "string.quoted.triple.euphoria",
"begin": "\"\"\"",
"end": "\"\"\""
},
{
"name": "string.quoted.other.euphoria",
"begin": "`",
"end": "`"
}
]
}
}
}