Skip to content

Commit

Permalink
1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
koroshiya committed Sep 29, 2015
1 parent f0ac48b commit 48d89ee
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 63 deletions.
6 changes: 3 additions & 3 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[
{ "keys": ["ctrl+i"], "command": "renpy_text_tag", "args": {"tag": "i"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] },
{ "keys": ["ctrl+b"], "command": "renpy_text_tag", "args": {"tag": "b"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] },
{ "keys": ["ctrl+u"], "command": "renpy_text_tag", "args": {"tag": "u"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] }
]
6 changes: 3 additions & 3 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[
{ "keys": ["super+i"], "command": "renpy_text_tag", "args": {"tag": "i"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] },
{ "keys": ["super+b"], "command": "renpy_text_tag", "args": {"tag": "b"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] },
{ "keys": ["super+u"], "command": "renpy_text_tag", "args": {"tag": "u"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] }
]
6 changes: 3 additions & 3 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[
{ "keys": ["ctrl+i"], "command": "renpy_text_tag", "args": {"tag": "i"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] },
{ "keys": ["ctrl+b"], "command": "renpy_text_tag", "args": {"tag": "b"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] },
{ "keys": ["ctrl+u"], "command": "renpy_text_tag", "args": {"tag": "u"}, "context": [
{ "key": "selector", "operator": "equal", "operand": "source.python.renpy" }
{ "key": "selector", "operator": "equal", "operand": "string.quoted" }
] }
]
34 changes: 34 additions & 0 deletions Python.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Python Indent Rules</string>
<key>scope</key>
<string>source.python.renpy</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>^\s*(elif|else|except|finally)\b.*:</string>
<key>increaseIndentPattern</key>
<string>.+?(?=:\s*$)</string>
<key>disableIndentNextLinePattern</key>
<string></string>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string># </string>
</dict>
<dict>
<key>name</key>
<string>TM_LINE_TERMINATOR</string>
<key>value</key>
<string>:</string>
</dict>
</array>
</dict>
</dict>
</plist>
1 change: 1 addition & 0 deletions RenpyGameplay.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
{ "trigger": "scene", "contents": "scene $0" },
{ "trigger": "show", "contents": "show $0" },
{ "trigger": "menu", "contents": "menu:\n\t\"$0\"\n\n\t\"Choice 1\":\n\n\t\tpass\n\n\t\"Choice 2\":\n\n\t\tpass" },
{ "trigger": "renpy.input", "contents": "\\$ renpy.input(prompt='$0', default='', allow=None, exclude='{}', length=None, with_none=None, pixel_width=None)" },
]
}
21 changes: 5 additions & 16 deletions RenpyLanguage.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{"include": "#ingame"},

{
"begin": "^(\\s)*python:",
"begin": "^(\\s)*python(\\s)*:(\\s)*$",
"beginCaptures":{
"0":{"name":"keyword.control.flow.renpy"}
},
Expand All @@ -35,7 +35,7 @@
},

{
"match":"^(\\s*)(\\$)$\n?",
"match":"^(\\s*)(\\$)(.*)$\n?",
"patterns": [
{"include": "#python"},
{"include": "source.python"}
Expand Down Expand Up @@ -124,7 +124,7 @@
},

{
"begin": "^(\\s)*python:",
"begin": "^(\\s)*python(\\s)*:(\\s)*$",
"beginCaptures":{
"0":{"name":"keyword.control.flow.renpy"}
},
Expand All @@ -136,15 +136,6 @@
"name": "source.python.renpy"
},

{
"match":"^(\\s*)(\\$)$\n?",
"patterns": [
{"include": "#python"},
{"include": "source.python"}
],
"name": "source.python.renpy"
},

{
"begin": "^(\\s)*init(\\s)+((\\+|\\-)\\d+\\s+)?python:",
"beginCaptures":{
Expand Down Expand Up @@ -259,14 +250,12 @@
"python": {
"patterns": [
{
"begin": "(\\s)*(renpy\\.)(.*)",
"begin": "(\\s)*(renpy\\.)([a-zA-Z0-9_]*)",
"beginCaptures":{
"0":{"name":"source.python"},
"2":{"name":"keyword.control.flow.renpy"},
"3":{"name":"variable.renpy"}
},
"patterns": [
{"include": "source.python"}
],
"end": "\n"
}
]
Expand Down
36 changes: 8 additions & 28 deletions RenpyLanguage.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</dict>
<dict>
<key>match</key>
<string>^(\s*)(\$)$
<string>^(\s*)(\$)(.*)$
?</string>
<key>name</key>
<string>source.python.renpy</string>
Expand Down Expand Up @@ -269,7 +269,7 @@
</dict>
<dict>
<key>begin</key>
<string>^(\s)*python:</string>
<string>^(\s)*python(\s)*:(\s)*$</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand All @@ -294,24 +294,6 @@
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>^(\s*)(\$)$
?</string>
<key>name</key>
<string>source.python.renpy</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#python</string>
</dict>
<dict>
<key>include</key>
<string>source.python</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>^(\s)*init(\s)+((\+|\-)\d+\s+)?python:</string>
Expand Down Expand Up @@ -450,9 +432,14 @@
<array>
<dict>
<key>begin</key>
<string>(\s)*(renpy\.)(.*)</string>
<string>(\s)*(renpy\.)([a-zA-Z0-9_]*)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>source.python</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
Expand All @@ -467,13 +454,6 @@
<key>end</key>
<string>
</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.python</string>
</dict>
</array>
</dict>
</array>
</dict>
Expand Down
11 changes: 2 additions & 9 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
Indent doesn't work properly for "python:", as it's in the
source.python context, rather than the source.renpy context.

- ground inside imagemaps isn't orange like xpos and stuff
- the "# The two window variant." comment in say screen has window variant in pink
- Comments are the same color as all text apart from keywords, I think it's nice if comments have different colors though(Maybe just because I'm used to it since the other editors I use have it like this and it was like this before?)
- Strings are white just as everything else(they were dark yellow before I think?)
- I believe numbers had a different color before?
- If/else/for are white
- input(eg in input screen) is white
- init/style aren't working properly(see image)
- init/style aren't working properly(see image)
- parameters aren't highlighted within python blocks
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"1.1.01": "messages/1.1.1.txt",
"1.1.02": "messages/1.1.2.txt",
"1.1.03": "messages/1.1.3.txt",
"1.1.04": "messages/1.1.4.txt"
"1.1.04": "messages/1.1.4.txt",
"1.1.05": "messages/1.1.5.txt"
}
11 changes: 11 additions & 0 deletions messages/1.1.5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Sublime Renpy v1.1.5
======================

Bugfixes:
-ctrl+i, b and u hotkey are now overridden again
-single-line Python statements now work as anticipated
-python and init python blocks now indent properly

Improvements:
-the ctrl hotkey overrides now only occur within strings
-added autocomplete for renpy.input within label context

0 comments on commit 48d89ee

Please sign in to comment.