Skip to content

Commit

Permalink
Add indent and another words
Browse files Browse the repository at this point in the history
  • Loading branch information
williamd1k0 committed Feb 7, 2015
1 parent caf5358 commit 29093b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions grammars/renpy.cson
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'scopeName': 'source.renpy'
'name': 'RenPy'
'name': 'Ren\'Py'
'fileTypes': [
'rpy'
]
Expand Down Expand Up @@ -100,7 +100,12 @@
{
'comment': 'keywords that alter flow from within a block'
'name': 'keyword.control.statement.python'
'match': '\\b(at|label|init|nvl|scene|show|screen|stop|play|$|define|image|voice|call|with|break|continue|pass|return|yield)\\b'
'match': '\\b(at|label|init|nvl|scene|show|screen|stop|play|define|image|voice|call|jump|menu|imagemap|hotspot|text|add|key|use|bar|with|zorder|style|is|button|break|continue|pass|return|yield)\\b'
}
{
'comment': 'keywords of a rosinha color'
'name': 'constant.numeric.integer.decimal.python'
'match': '\\b(color|size|xpos|ypos|xanchor|yanchor|action|area|hovered|unhovered|xalign|yalign|idle|hover|ground|alpha|python|clicked|modal|text_style|default|spacing)\\b'
}
{
'comment': 'keyword operators that evaluate to True or False'
Expand Down
4 changes: 2 additions & 2 deletions settings/language-python.cson
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'.source.python':
'.source.renpy':
'editor':
'autoIndentOnPaste': false
'tabLength': 4
'foldEndPattern': '^\\s*"""\\s*$'
'commentStart': '# '
'increaseIndentPattern': '^\\s*(class|def|elif|else|except|finally|for|if|try|with|while)\\b.*:\\s*$'
'increaseIndentPattern': '^\\s*(class|def|elif|else|except|finally|for|if|try|with|while|menu|label|screen|window|hbox|vbox|init|python)\\b.*:\\s*$'
'decreaseIndentPattern': '^\\s*(elif|else|except|finally)\\b.*:'

0 comments on commit 29093b2

Please sign in to comment.