Skip to content

Commit 086ce97

Browse files
Sirpixelalotclaude
andcommitted
Add Ren'Py syntax highlighting to .rpy editor
- Integrated TextMate language support with Ren'Py grammar - Added custom dark theme for syntax highlighting - Implemented last edited file tracking in main menu - Enhanced Edit RPY card with status display - Updated to version 1.4 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8348ea9 commit 086ce97

File tree

8 files changed

+661
-34
lines changed

8 files changed

+661
-34
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ android {
1818
applicationId "com.renpytool"
1919
minSdk 33
2020
targetSdk 34
21-
versionCode 3
22-
versionName "1.3"
21+
versionCode 4
22+
versionName "1.4"
2323

2424
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2525

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"languages": [
3+
{
4+
"grammar": "textmate/renpy/syntaxes/renpy.tmLanguage.json",
5+
"name": "renpy",
6+
"scopeName": "source.renpy",
7+
"languageConfiguration": "textmate/renpy/language-configuration.json"
8+
}
9+
]
10+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"name": "Ren'Py Dark Theme",
3+
"type": "dark",
4+
"colors": {
5+
"editor.background": "#141218",
6+
"editor.foreground": "#E6E0E9",
7+
"editorLineNumber.foreground": "#E6E0E9",
8+
"editorLineNumber.background": "#141218",
9+
"editor.lineHighlightBackground": "#1D1B20",
10+
"editor.selectionBackground": "#4A4458"
11+
},
12+
"tokenColors": [
13+
{
14+
"scope": ["comment", "punctuation.definition.comment"],
15+
"settings": {
16+
"foreground": "#928F96",
17+
"fontStyle": "italic"
18+
}
19+
},
20+
{
21+
"scope": ["string", "string.quoted"],
22+
"settings": {
23+
"foreground": "#A6D189"
24+
}
25+
},
26+
{
27+
"scope": ["keyword", "keyword.control", "keyword.other"],
28+
"settings": {
29+
"foreground": "#E78284",
30+
"fontStyle": "bold"
31+
}
32+
},
33+
{
34+
"scope": ["entity.name.function", "support.function"],
35+
"settings": {
36+
"foreground": "#8CAAEE"
37+
}
38+
},
39+
{
40+
"scope": ["entity.name.type", "entity.name.class"],
41+
"settings": {
42+
"foreground": "#EF9F76"
43+
}
44+
},
45+
{
46+
"scope": ["variable", "variable.other"],
47+
"settings": {
48+
"foreground": "#E6E0E9"
49+
}
50+
},
51+
{
52+
"scope": ["constant.numeric", "constant.language"],
53+
"settings": {
54+
"foreground": "#F4B8E4"
55+
}
56+
},
57+
{
58+
"scope": ["constant.character", "constant.other"],
59+
"settings": {
60+
"foreground": "#F4B8E4"
61+
}
62+
},
63+
{
64+
"scope": ["storage.type", "storage.modifier"],
65+
"settings": {
66+
"foreground": "#E78284"
67+
}
68+
},
69+
{
70+
"scope": ["support.type", "support.class"],
71+
"settings": {
72+
"foreground": "#EF9F76"
73+
}
74+
},
75+
{
76+
"scope": ["punctuation"],
77+
"settings": {
78+
"foreground": "#CAC6CF"
79+
}
80+
}
81+
]
82+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"comments": {
3+
"lineComment": "#"
4+
},
5+
"brackets": [
6+
["{", "}"],
7+
["[", "]"],
8+
["(", ")"]
9+
],
10+
"autoClosingPairs": [
11+
{ "open": "{", "close": "}" },
12+
{ "open": "[", "close": "]" },
13+
{ "open": "(", "close": ")" },
14+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
16+
],
17+
"surroundingPairs": [
18+
["{", "}"],
19+
["[", "]"],
20+
["(", ")"],
21+
["\"", "\""],
22+
["'", "'"]
23+
],
24+
"indentationRules": {
25+
"increaseIndentPattern": "^\\s*(label|menu|if|elif|else|while|for|def|class|python|init python|screen|style|transform)\\b.*:\\s*$",
26+
"decreaseIndentPattern": "^\\s*(elif|else)\\b.*:\\s*$"
27+
}
28+
}

0 commit comments

Comments
 (0)