Skip to content

Commit 18c32da

Browse files
Configure textmate for code editor (#18)
1 parent bf69344 commit 18c32da

27 files changed

+23426
-4
lines changed

app/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ android {
5252
}
5353
}
5454
compileOptions {
55-
sourceCompatibility = JavaVersion.VERSION_11
56-
targetCompatibility = JavaVersion.VERSION_11
55+
sourceCompatibility = JavaVersion.VERSION_17
56+
targetCompatibility = JavaVersion.VERSION_17
57+
isCoreLibraryDesugaringEnabled = true
5758
}
5859
kotlinOptions {
59-
jvmTarget = "11"
60+
jvmTarget = "17"
6061
}
6162
buildFeatures {
6263
compose = true
@@ -107,6 +108,8 @@ dependencies {
107108

108109
implementation(platform(libs.bom))
109110
implementation(libs.editor)
111+
implementation(libs.language.textmate)
112+
coreLibraryDesugaring(libs.desugar.jdk.libs)
110113

111114
testImplementation(libs.junit)
112115
androidTestImplementation(libs.androidx.junit)
Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
{
2+
"name": "Abyss",
3+
"settings": [{
4+
"settings": {
5+
"background": "#000c18",
6+
"caret": "#ddbb88",
7+
"foreground": "#6688cc",
8+
"invisibles": "#002040",
9+
"lineHighlight": "#082050",
10+
"selection": "#770811",
11+
"guide": "#002952"
12+
}
13+
}, {
14+
"scope": ["meta.embedded", "source.groovy.embedded"],
15+
"settings": {
16+
"foreground": "#6688cc"
17+
}
18+
}, {
19+
"name": "Comment",
20+
"scope": "comment",
21+
"settings": {
22+
"foreground": "#384887"
23+
}
24+
}, {
25+
"name": "String",
26+
"scope": "string",
27+
"settings": {
28+
"foreground": "#22aa44"
29+
}
30+
}, {
31+
"name": "Number",
32+
"scope": "constant.numeric",
33+
"settings": {
34+
"foreground": "#f280d0"
35+
}
36+
}, {
37+
"name": "Built-in constant",
38+
"scope": "constant.language",
39+
"settings": {
40+
"foreground": "#f280d0"
41+
}
42+
}, {
43+
"name": "User-defined constant",
44+
"scope": ["constant.character", "constant.other"],
45+
"settings": {
46+
"foreground": "#f280d0"
47+
}
48+
}, {
49+
"name": "Variable",
50+
"scope": "variable",
51+
"settings": {
52+
"fontStyle": ""
53+
}
54+
}, {
55+
"name": "Keyword",
56+
"scope": "keyword",
57+
"settings": {
58+
"foreground": "#225588"
59+
}
60+
}, {
61+
"name": "Storage",
62+
"scope": "storage",
63+
"settings": {
64+
"fontStyle": "",
65+
"foreground": "#225588"
66+
}
67+
}, {
68+
"name": "Storage type",
69+
"scope": "storage.type",
70+
"settings": {
71+
"fontStyle": "italic",
72+
"foreground": "#9966b8"
73+
}
74+
}, {
75+
"name": "Class name",
76+
"scope": ["entity.name.class", "entity.name.type", "entity.name.namespace", "entity.name.scope-resolution"],
77+
"settings": {
78+
"fontStyle": "underline",
79+
"foreground": "#ffeebb"
80+
}
81+
}, {
82+
"name": "Inherited class",
83+
"scope": "entity.other.inherited-class",
84+
"settings": {
85+
"fontStyle": "italic underline",
86+
"foreground": "#ddbb88"
87+
}
88+
}, {
89+
"name": "Function name",
90+
"scope": "entity.name.function",
91+
"settings": {
92+
"fontStyle": "",
93+
"foreground": "#ddbb88"
94+
}
95+
}, {
96+
"name": "Function argument",
97+
"scope": "variable.parameter",
98+
"settings": {
99+
"fontStyle": "italic",
100+
"foreground": "#2277ff"
101+
}
102+
}, {
103+
"name": "Tag name",
104+
"scope": "entity.name.tag",
105+
"settings": {
106+
"fontStyle": "",
107+
"foreground": "#225588"
108+
}
109+
}, {
110+
"name": "Tag attribute",
111+
"scope": "entity.other.attribute-name",
112+
"settings": {
113+
"fontStyle": "",
114+
"foreground": "#ddbb88"
115+
}
116+
}, {
117+
"name": "Library function",
118+
"scope": "support.function",
119+
"settings": {
120+
"fontStyle": "",
121+
"foreground": "#9966b8"
122+
}
123+
}, {
124+
"name": "Library constant",
125+
"scope": "support.constant",
126+
"settings": {
127+
"fontStyle": "",
128+
"foreground": "#9966b8"
129+
}
130+
}, {
131+
"name": "Library class/type",
132+
"scope": ["support.type", "support.class"],
133+
"settings": {
134+
"fontStyle": "italic",
135+
"foreground": "#9966b8"
136+
}
137+
}, {
138+
"name": "Library variable",
139+
"scope": "support.other.variable",
140+
"settings": {
141+
"fontStyle": ""
142+
}
143+
}, {
144+
"name": "Invalid",
145+
"scope": "invalid",
146+
"settings": {
147+
"fontStyle": "",
148+
"foreground": "#A22D44"
149+
}
150+
}, {
151+
"name": "Invalid deprecated",
152+
"scope": "invalid.deprecated",
153+
"settings": {
154+
"foreground": "#A22D44"
155+
}
156+
}, {
157+
"name": "diff: header",
158+
"scope": ["meta.diff", "meta.diff.header"],
159+
"settings": {
160+
"fontStyle": "italic",
161+
"foreground": "#E0EDDD"
162+
}
163+
}, {
164+
"name": "diff: deleted",
165+
"scope": "markup.deleted",
166+
"settings": {
167+
"fontStyle": "",
168+
"foreground": "#dc322f"
169+
}
170+
}, {
171+
"name": "diff: changed",
172+
"scope": "markup.changed",
173+
"settings": {
174+
"fontStyle": "",
175+
"foreground": "#cb4b16"
176+
}
177+
}, {
178+
"name": "diff: inserted",
179+
"scope": "markup.inserted",
180+
"settings": {
181+
"foreground": "#219186"
182+
}
183+
}, {
184+
"name": "Markup Quote",
185+
"scope": "markup.quote",
186+
"settings": {
187+
"foreground": "#22aa44"
188+
}
189+
}, {
190+
"name": "Markup Styling",
191+
"scope": ["markup.bold", "markup.italic"],
192+
"settings": {
193+
"foreground": "#22aa44"
194+
}
195+
}, {
196+
"name": "Markup: Strong",
197+
"scope": "markup.bold",
198+
"settings": {
199+
"fontStyle": "bold"
200+
}
201+
}, {
202+
"name": "Markup: Emphasis",
203+
"scope": "markup.italic",
204+
"settings": {
205+
"fontStyle": "italic"
206+
}
207+
}, {
208+
"name": "Markup Inline",
209+
"scope": "markup.inline.raw",
210+
"settings": {
211+
"fontStyle": "",
212+
"foreground": "#9966b8"
213+
}
214+
}, {
215+
"name": "Markup Headings",
216+
"scope": ["markup.heading", "markup.heading.setext"],
217+
"settings": {
218+
"fontStyle": "bold",
219+
"foreground": "#6688cc"
220+
}
221+
}]
222+
223+
}

0 commit comments

Comments
 (0)