Skip to content

Commit

Permalink
Changed scope name to inherit from python, fixing if statements and s…
Browse files Browse the repository at this point in the history
…uch.

Added completions for menu and label.
Added highlighting for jump and label.
  • Loading branch information
koroshiya committed Feb 25, 2015
1 parent d217d20 commit 61eb8f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions RenpyLanguage.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scope": "source.renpython",
"scope": "source.python.renpy",
"completions":
[
{ "trigger": "copy_images", "contents": "copy_images(old=$0, new=None)" },
Expand Down Expand Up @@ -114,6 +114,9 @@
{ "trigger": "VariableValue", "contents": "VariableValue(variable=$0, range=, max_is_zero=False, style='bar', offset=0, step=None)" },
{ "trigger": "With", "contents": "With(transition=$0)" },
{ "trigger": "XScrollValue", "contents": "XScrollValue(viewport=$0)" },
{ "trigger": "YScrollValue", "contents": "YScrollValue(viewport=$0)" }
{ "trigger": "YScrollValue", "contents": "YScrollValue(viewport=$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": "label", "contents": "label $0:\n\n\tpass" }
]
}
4 changes: 2 additions & 2 deletions RenpyLanguage.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<key>comment</key>
<string>renpy python keywords</string>
<key>match</key>
<string>\b(python|renpy|store|init|define)\b</string>
<string>\b(python|renpy|store|init|define|jump|label)\b</string>
<key>name</key>
<string>keyword.control.flow.renpy</string>
</dict>
Expand All @@ -70,7 +70,7 @@
</dict>
</array>
<key>scopeName</key>
<string>source.renpython</string>
<string>source.python.renpy</string>
<key>uuid</key>
<string>11B0273F-0284-4483-B17B-4B8D0A9294CD</string>
</dict>
Expand Down

0 comments on commit 61eb8f9

Please sign in to comment.