Spoofax-Lua is an Eclipse plugin for editing Lua files, based on Spoofax. It's been made for educational/testing purposes, so don't expect too much.
Install Spoofax nightly by following the instructions here,
but use http://www.lclnet.nl/update/nightly
as the update site URL.
When finished, import this project into your workspace and press ctrl+alt+B to build it.
After this .lua
files should open in this plugin.
- Completion and reference resolving of:
- global variables that are assigned anywhere in the file
- local variables in the current scope
- Completion of:
- table fields
- function arguments
- Warns about:
- incorrect placement of
break
statements - use of unassigned globals
- unused globals
- unused locals
- incorrect placement of
- Folding of functions
- Rudimentary outline view (only when deployed)
- Syntax tested on more than 3650 Lua files