zoukankan      html  css  js  c++  java
  • ue配置lua语法高亮


    1、将以下脚本复制到文件lua.uew文件中,并放入:
    D:Program Files (x86)IDM Computer SolutionsUltraEditwordfiles
    安装文件夹语法高亮目录下面;
    说明:从官网下载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 = "^[ ]*[local]*[ ]*function[ ]+([w]+[.]*[w]*)[ ]*([^)]*)"
    /TGBegin "Parameters"
    /TGFindStr = "[ ]*($[a-z_x7f-xff][0-9a-z_x7f-xff]*[ ]*=[ ]*(?:array[ ]*((?:[^()]*|(?:[ ]*array[ ]*(.*?))+[ ]*))|".*?"(?<!\")|'.*?'(?<!\'))|[^,]+)"
    /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脚本自动完成:高级-->设置-->自动完成,勾选自动完成必要选项;

  • 相关阅读:
    第十三周总结
    第十二周总结
    团队冲刺第十五天-KeepRunningAPP
    团队第一阶段冲刺评价
    团队项目KeepRunning第一阶段成果展示
    团队冲刺第十四天-KeepRunningAPP
    第十一周总结
    团队冲刺第十三天-KeepRunningAPP
    CVPR2018关键字生成词云图
    Delphi APP 開發入門(八)SQLite資料庫
  • 原文地址:https://www.cnblogs.com/skiing886/p/7616240.html
Copyright © 2011-2022 走看看