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脚本自动完成:高级-->设置-->自动完成,勾选自动完成必要选项;

  • 相关阅读:
    《不生不熟》读后感 读书笔记
    《亚洲与一战》读后感 读书笔记
    《厨房》读后感 读书笔记
    《娇惯的心灵》读后感 读书笔记
    《实践理性批判》读后感 读书笔记
    嵌入式三级知识点整理
    C语言:输入一个数,输出比这个数小的所有素数,并求出个数。
    C语言知识点记录
    C语言-实现矩阵的转置-随机函数产生随机数并赋予数组中-190222
    将数字字符转为数字的两种方法。
  • 原文地址:https://www.cnblogs.com/skiing886/p/7616240.html
Copyright © 2011-2022 走看看