首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

强力的lua patch,支持lua终端代码揭示

2012-09-04 
强力的lua patch,支持lua终端代码提示地址:http://lua-users.org/wiki/LuaPowerPatchesAdvanced readline

强力的lua patch,支持lua终端代码提示

地址:http://lua-users.org/wiki/LuaPowerPatchesAdvanced readline support (5.2, 5.1, 5.0)

This patch adds the following features to the existing readline support in Lua 5.x:

?

Completion of keywords and global variable names.Recursive and metatable-aware completion of variable names.Context sensitive delimiter completion.Save/restore the history to/from a file (LUA_HISTORY?env variable).Set a limit for the size of the history (LUA_HISTSIZE?env variable).Set the app name to allow for?$if lua ... $endif?in?~/.inputrc.

After applying the patch start Lua and try these (replace?~?with the TAB key):

~~fu~foo() ret~fa~end<CR>io~~~s~~~o~~~w~"foo\n")<CR>

热点排行