Lua Dev
Various support files for making developing Lua using Sublime Text 2 more pleasant.
Details
Installs
- Total 30K
- Win 19K
- Mac 7K
- Linux 3K
Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 4 | 2 | 2 | 2 | 0 | 1 | 1 | 1 | 0 | 1 | 4 | 4 | 0 | 2 | 2 | 1 | 1 | 1 | 2 | 1 | 2 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 2 | 2 | 1 | 4 | 2 | 2 | 1 | 2 | 0 | 2 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 |
Linux | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
LuaSublime
A collection of various different support files useful for use when programming in Lua using Sublime Text 2.
Installation
These files should be placed into the Lua package directory. For those on OS X, this can be found at:
/Users/[USERNAME]/Library/Application Support/Sublime Text 2/Packages/Lua
For Windows, this directory is here:
C:\\Users\\[USERNAME]\\AppData\\Roaming\\Sublime Text 2\\Packages\\Lua
Contents
Syntax Coloring
Lua.tmLanguage
Lua.JSON-tmLanguage
These files define a language grammar for syntax highlighting lua files. Compared to the one that ships with Sublime Text, you get the following:
- More tokens: Things like function calls and variables are now tagged, so they will show up correctly colored.
- Better scopes: Most blocks now have some nested scoping support. This means that if the carat is on a variable in an if-block inside a function inside another function, then it knows this. This doesn't affect the coloring, but if you use the 'expand selection to scope' command then you will find that you'll get far better matches now.
For comparison, here's how the old syntax-highlighting looks with the Twilight color scheme:
And here's the new one:
Build System
Lua.sublime-build
This is a simple build system that compiles and runs the current lua file. You can jump between errors using F4.
Live Parser
ParseLua.py
This is a small plugin that continually parses the current lua file and highlights any errors by placing a dot in the margin.
Lua appears to stop at the first error, so you should only ever see one dot. The error message will be shown in the status bar.