ue配置lua语法高亮


1、将以下脚本复制到文件lua.uew文件中,并放入:
D:\Program Files (x86)\IDM Computer Solutions\UltraEdit\wordfiles
安装文件夹语法高亮目录下面;
说明:从官网下载lua.uew文件不支持块注释,并且local函数或者类成员函数都不能F8直接显示
/L20"Lua" Block Comment On = --[[ Block Comment Off = --]] Block Comment On Alt = -- Escape Char = \ String Chars = "' File Extensions = LUA BIN lua
/TGBegin "Functions"
/TGFindStr = "^[ \t]*[local]*[ ]*function[ ]+([\w]+[.]*[\w]*)[ \t]*\([^\)]*\)"
/TGBegin "Parameters"
/TGFindStr = "[\t ]*(\$[a-z_\x7f-\xff][0-9a-z_\x7f-\xff]*[\t ]*=[\t ]*(?:array[\t ]*\((?:[^()]*|(?:[\t ]*array[\t ]*\(.*?\))+[\t ]*)\)|".*?"(?<!\\")|'.*?'(?<!\\'))|[^,]+)"
/TGFindBStart = "\("
/TGFindBEnd = "\)"
/TGEnd
/TGEnd
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> , .?
/Regexp Type = Perl
/Indent Strings = "{" "function" "then" "while" "for" "else"
/Unindent Strings = "}" "end" "else"
/Open Fold Strings = "for" "while" "function" "if" "repeat" "{"
/Close Fold Strings = "end" "until" "}"

/C1"Keywords"
and
break
do
else elseif end
false for function
if in
local
nil not
or
repeat return
then true
until
while
/C2"Built-in functions"
abs acos appendto ascii asin assert atan atan2
byte
call ceil char clock close collectgarbage concat copytagmethods coroutine cos cosh cpath create
date debug deg difftime dofile dostring dump
error execute exit exp
file find floor flush fmod foreach foreachvar format frexp
getbinmethod getenv getfenv getglobal gethook getinfo getlocal getmetatable getregistry gettagmethod
getupvalue gmatch gsub
huge
input insert io ipairs
ldexp len lines load loaded loaders loadfile loadlib loadstring log log10 lower
match math max maxinteger maxn min mininteger mod modf module
newtag next nextvar
open os output
package pairs path pcall pi popen pow preload print
rad random randomseed rawequal rawget rawgetglobal rawgettable rawset rawsetglobal rawsettable read
readfrom remove rename rep require resume reverse running
seeall seek select seterrormethod setfenv setglobal sethook setlocal setlocale setmetatable settag
settagmethod setupvalue setvbuf sin sinh sort sqrt status strbyte strchar strfind string strlen strlower
strrep strsub strupper sub
table tag tan tanh time tmpfile tmpname tointeger tonumber tostring traceback type
ult unpack upper
wrap write writeto
xpcall
yield
/C3"Built-in variables"
PI
_G _INPUT _OUTPUT _STDERR _STDIN _STDOUT _VERSION
/C4"Operators"
%
(
)
*
+
,
-
.
// /
:
;
<
=
>
[
]
^
{
}
~
/C5 "Compilation pragmas"
$debug $else $end $endinput $if $ifnot $nodebug
2、配置lua脚本自动完成:高级-->设置-->自动完成,勾选自动完成必要选项;

转载于:https://www.cnblogs.com/skiing886/p/7616240.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值