-
Notifications
You must be signed in to change notification settings - Fork 28
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 #34 from sekodev/temp-fix
Temporary fix to saving error
- Loading branch information
Showing
2 changed files
with
248 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,247 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>comment</key> | ||
<string>Corona Lua Syntax: version 0.2 (after Lua Syntax: version 0.8)</string> | ||
<key>fileTypes</key> | ||
<array> | ||
<string>lua</string> | ||
</array> | ||
<key>foldingStartMarker</key> | ||
<string>^\s*\b(function|local\s+function|if|for)\b|{[ \t]*$|\[\[</string> | ||
<key>foldingStopMarker</key> | ||
<string>\bend\b|^\s*}|\]\]</string> | ||
<key>keyEquivalent</key> | ||
<string>^~L</string> | ||
<key>name</key> | ||
<string>Corona Lua</string> | ||
<key>patterns</key> | ||
<array> | ||
<dict> | ||
<key>begin</key> | ||
<string>--\[(=*)\[</string> | ||
<key>captures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.comment.lua</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>\]\1\]</string> | ||
<key>name</key> | ||
<string>comment.block.lua</string> | ||
</dict> | ||
<dict> | ||
<key>captures</key> | ||
<dict> | ||
<key>1</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.comment.lua</string> | ||
</dict> | ||
</dict> | ||
<key>match</key> | ||
<string>([\s]*-{2})(?!\[\[).*$\n?</string> | ||
<key>name</key> | ||
<string>comment.line.double-dash.lua</string> | ||
</dict> | ||
<dict> | ||
<key>captures</key> | ||
<dict> | ||
<key>1</key> | ||
<dict> | ||
<key>name</key> | ||
<string>keyword.control.lua</string> | ||
</dict> | ||
<key>2</key> | ||
<dict> | ||
<key>name</key> | ||
<string>keyword.control.lua</string> | ||
</dict> | ||
<key>3</key> | ||
<dict> | ||
<key>name</key> | ||
<string>entity.name.function.scope.lua</string> | ||
</dict> | ||
<key>4</key> | ||
<dict> | ||
<key>name</key> | ||
<string>keyword.control.lua</string> | ||
</dict> | ||
<key>5</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.parameters.begin.lua</string> | ||
</dict> | ||
<key>6</key> | ||
<dict> | ||
<key>name</key> | ||
<string>variable</string> | ||
</dict> | ||
<key>7</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.parameters.end.lua</string> | ||
</dict> | ||
</dict> | ||
<key>match</key> | ||
<string>(?:.*(?=\bfunction\b.*))(local\s+)*(function\s+)*((?:[A-Za-z_]\w*[:.])*[A-Za-z_]\w*)(?:\s*=\s*)*(function)*\s*(\()([^)]*)(\))</string> | ||
<key>name</key> | ||
<string>meta.function.lua</string> | ||
<key>comment</key> | ||
<string>Find the various kinds of function definition in Lua: for any line containing "function", match optional "local" and/or "function", match identifier with optional classname, discard optional "=", match optional "function", match "(", match everything until closing ")", match ")"</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>(?<![\d.])\s0x[a-fA-F\d]+|\b\d+(\.\d+)?([eE]-?\d+)?|\.\d+([eE]-?\d+)?</string> | ||
<key>name</key> | ||
<string>constant.numeric.lua</string> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>'</string> | ||
<key>beginCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.begin.lua</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>'</string> | ||
<key>endCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.end.lua</string> | ||
</dict> | ||
</dict> | ||
<key>name</key> | ||
<string>string.quoted.single.lua</string> | ||
<key>patterns</key> | ||
<array> | ||
<dict> | ||
<key>match</key> | ||
<string>\\.</string> | ||
<key>name</key> | ||
<string>constant.character.escape.lua</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>"</string> | ||
<key>beginCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.begin.lua</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>"</string> | ||
<key>endCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.end.lua</string> | ||
</dict> | ||
</dict> | ||
<key>name</key> | ||
<string>string.quoted.double.lua</string> | ||
<key>patterns</key> | ||
<array> | ||
<dict> | ||
<key>match</key> | ||
<string>\\.</string> | ||
<key>name</key> | ||
<string>constant.character.escape.lua</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>(?<!--)\[(=*)\[</string> | ||
<key>beginCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.begin.lua</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>\]\1\]</string> | ||
<key>endCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.end.lua</string> | ||
</dict> | ||
</dict> | ||
<key>name</key> | ||
<string>string.quoted.other.multiline.lua</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\b</string> | ||
<key>name</key> | ||
<string>keyword.control.lua</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>(?<![^.]\.|:)\b(false|nil|true|_G|_VERSION|math\.(pi|huge))\b|(?<![.])\.{3}(?!\.)</string> | ||
<key>name</key> | ||
<string>constant.language.lua</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>(?<![^.]\.|:)\b(self)\b</string> | ||
<key>name</key> | ||
<string>variable.language.self.lua</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>(?<![^.]\.|:)\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\b(?=[( {])</string> | ||
<key>name</key> | ||
<string>support.function.lua</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>(?<![^.]\.|:)\b(coroutine\.(create|resume|running|status|wrap|yield)|string\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(concat|insert|maxn|remove|sort)|math\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(cpath|loaded|loadlib|path|preload|seeall)|debug\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\b(?=[( {])</string> | ||
<key>name</key> | ||
<string>support.function.library.lua</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>\b(ads|analytics|audio|composer|credits|crypto|display|easing|facebook|gameNetwork|global|graphics|io|json|lfs|licensing|math|mime|media|native|network|os|package|physics|socket|sprite|sqlite3|store|storyboard|string|syntax|system|table|timer|transition|widget)\.[a-zA-Z0-9]+\b</string> | ||
<key>name</key> | ||
<string>support.function.library.corona</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>\b(and|or|not)\b</string> | ||
<key>name</key> | ||
<string>keyword.operator.lua</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>\+|-|%|#|\*|\/|\^|==?|~=|<=?|>=?|(?<!\.)\.{2}(?!\.)</string> | ||
<key>name</key> | ||
<string>keyword.operator.lua</string> | ||
</dict> | ||
</array> | ||
<key>scopeName</key> | ||
<string>source.lua.corona</string> | ||
<key>uuid</key> | ||
<string>83E017CC-6F27-11D9-90EB-000D93589AF7</string> | ||
</dict> | ||
</plist> |
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