-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from JelleInfinity/pr
Small fixes in python block and new indenting rules
- Loading branch information
Showing
3 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,56 @@ | ||
{ | ||
"comments": { | ||
// symbol used for single line comment. Remove this entry if your language does not support line comments | ||
"lineComment": "#" | ||
"comments": { | ||
// symbol used for single line comment. Remove this entry if your language does not support line comments | ||
"lineComment": "#" | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
{ "open": "{", "close": "}" }, | ||
{ "open": "[", "close": "]" }, | ||
{ "open": "(", "close": ")" }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "'", "close": "'", "notIn": ["string"] }, | ||
{ "open": "`", "close": "`", "notIn": ["string"] }, | ||
{ "open": "\"\"\"", "close": "\"\"\"", "notIn": ["string"] } | ||
], | ||
// symbols that that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"], | ||
["`", "`"], | ||
["\"\"\"", "\"\"\""] | ||
], | ||
"folding": { | ||
"offSide": true, | ||
"markers": { | ||
"start": "^\\s*#\\s*region\\b", | ||
"end": "^\\s*#\\s*endregion\\b" | ||
} | ||
}, | ||
"onEnterRules": [ | ||
//Renpy keywords | ||
{ | ||
"beforeText": "^\\s*\\b(?:label|menu|python|init|screen|transform)\\b.*:\\s*$", | ||
"action": { "indent": "indent" } | ||
}, | ||
//Python keywords available in renpy code | ||
{ | ||
"beforeText": "^\\s*\\b(?:for|if|elif|else|while)\\b.*:\\s*$", | ||
"action": { "indent": "indent" } | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
{ "open": "{", "close": "}" }, | ||
{ "open": "[", "close": "]" }, | ||
{ "open": "(", "close": ")" }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "'", "close": "'", "notIn": ["string"] }, | ||
{ "open": "`", "close": "`", "notIn": ["string"] }, | ||
{ "open": "\"\"\"", "close": "\"\"\"", "notIn": ["string"] } | ||
], | ||
// symbols that that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"], | ||
["`", "`"], | ||
["\"\"\"", "\"\"\""] | ||
], | ||
"folding": { | ||
"markers": { | ||
"start": "^#region", | ||
"end": "^#endregion" | ||
}, | ||
"offSide": true | ||
//For menu's | ||
{ | ||
"beforeText": "^\\s+(?:\".*?\"|\\'.*?\\')\\s*:\\s*$", | ||
"action": { "indent": "indent" } | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters