1
0
Fork 0
mirror of https://github.com/Reuh/sublime-candran.git synced 2025-10-27 18:19:31 +00:00

Updated to latest Lua syntax

This commit is contained in:
Étienne Fildadut 2019-08-11 16:36:13 +02:00
parent 879d2ff30b
commit e68cb5fd22
6 changed files with 759 additions and 89 deletions

24
Indent.tmPreferences Executable file → Normal file
View file

@ -1,18 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>name</key>
<string>Indent</string>
<key>scope</key>
<string>source.candran</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>^\s*(elseif|else|end|\})\s*$</string>
<key>increaseIndentPattern</key>
<string>^.*\b(else|elseif|for|(local\s+)?function|if|repeat|until|while)\b((?!end).)*$|\{\s*$|^.*(\s|,|=):?\([^\(]*\)\s*$</string>
<key>indentSquareBrackets</key>
<true/>
<key>name</key>
<string>Indent</string>
<key>scope</key>
<string>source.candran</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>(^\s*\b(elsei|elseif|else|end|until)\b.*$|^((?!\{).)*\}\;?.*$)</string>
<key>increaseIndentPattern</key>
<string>((^\s*\b(((local|let)?[\s\w=]+)?function|repeat|else|elseif|if|while)\b|^.*\b(do|then)\b|^.*([\(\,\=\[\{\+\-\*\/\^\%\&\|\:]|and|or|\/\/|\.\.|\&gt;\&gt;|\&lt;\&lt;)\s*(\(\)|\([A-Za-z_][A-Za-z0-9_]*[=,\)]))((?!\bend\b).)*$|^.*\{((?!\}).)*$)</string>
</dict>
</dict>
</dict>
</plist>