From b785ecb18580181674cfd0017ba4e61e0db23b78 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 26 Sep 2011 20:15:36 -0400 Subject: Added manual documentation on Lua 5.1 configuration. --- doc/manual/11_Scripting.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/manual') diff --git a/doc/manual/11_Scripting.md b/doc/manual/11_Scripting.md index 9e34187e..90ec3a39 100644 --- a/doc/manual/11_Scripting.md +++ b/doc/manual/11_Scripting.md @@ -15,6 +15,17 @@ Textadept's API is heavily documented. The [LuaDoc](../index.html) is the ultimate resource on scripting Textadept. There are of course abundant scripting examples since Textadept is mostly written in Lua. +## Lua Configuration + +[Lua 5.1](http://www.lua.org/manual/5.1/) is built into Textadept. It has the +same configuration (`luaconf.h`) as vanilla Lua with the following exceptions: + +* `TA_LUA_PATH` and `TA_LUA_CPATH` are the environment variable used in place of + the usual `LUA_PATH` and `LUA_CPATH`. +* `LUA_ROOT` is `/usr/` in Linux systems instead of `/usr/local/`. +* The `LUA_COMPAT_VARARG`, `LUA_COMPAT_MOD`, `LUA_COMPAT_GFIND`, and + `LUA_COMPAT_OPENLIB` compatibility flags for Lua 5.0 are turned off. + ## Scintilla The editing component used by Textadept is [Scintilla](http://scintilla.org). -- cgit v1.2.3