; EmEditor Syntax File ; ; To import this file to an existing configuration, select Configuration ; under the Tool menu, select Define Configurations, select a configuration ; you want to import to, press [Properties], select the Highlight page, and ; press [Import]. ; ; Submit your customized file to submit@emurasoft.com ; to be listed in www.emurasoft.com user files pages. ; ; ; Lua 5.2 構文ファイル ; リファレンスマニュアルを参考にしています。 (http://www.lua.org/manual/5.2/) ; ; [強調表示の色設定] ; 1. 演算子など ; 2. 数値と文字列 ; 3. 予約された変数 ; 4. キーワード ; 5. 関数 ; 10. 廃止された関数と廃止予定の関数 ; ; [制約] ; - [[文字列]] の形式は改行を含んだものには対応していません。(EmEditorの正規表現の制限) ; - ブロックコメントは = を含めたものには対応していません。(--[[色がつく]] --[=[色がつかない]=]) ; - 行コメントは半角スペースが必要です。("-- 色がつく" "--色がつかない") ; ブロックコメントよりも行コメントが先に判定されるらしく、 ; "--" で定義すると、ブロックコメントも一行しか色がついてくれませんでした。 ; ; [Tips] アウトラインの設定 ; タイプ(T): カスタム (開始をレベル 1/終了をレベル 2 として指定) ; レベル 1: (\bdo\b|\bfunction\b|\bif\b|\brepeat\b|\{) ; レベル 2: (\bend\b|\buntil\b|\}) ; 正規表現にチェックをつけてください。 ; ; ; Syntax File for Lua 5.2 ; Based on Reference Manual. (http://www.lua.org/manual/5.2/) ; ; [Keyword color] ; 1. Operators ; 2. Numerical constant and Literal strings ; 3. Reserved variables ; 4. Syntax keywords ; 5. Basic functions ; 10. Deprecated and Removed ; ; [Restriction] ; - Literal strings using long bracket cannot include newline. ("[[highlight '\n' is disable]]") ; - Long comment cannot include equal signs. ("--[[highlight is enable]]", "--[=[highlight is disable]=]") ; - Short comment needs space after double hyphen. ("-- highlight is enable", "--highlight is disable" ) ; ; [Tips] Customize Outline Plug-in ; Type: Custom (Specify Begin as Level 1/End as Level 2) ; Level 1: (\bdo\b|\bfunction\b|\bif\b|\brepeat\b|\{) ; Level 2: (\bend\b|\buntil\b|\}) ; Check both "Regular Expression". ; #Highlight=on #BeginTag= #EndTag= #CommentBegin=--[[ #CommentEnd=]] #LineComment1=-- #LineComment2= #SingleQuote=on #DoubleQuote=on #ContinueQuote=off #Escape=\ #ScriptBegin= #ScriptEnd= #SpecialSyntax=off #HighlightBraces=on #Keyword color=1,word=on,rightall=off,case=on,insidetag=off,regexp=off,rightall2=off + - * / % ^^ ^# == ~= <= >= < > = ^; : , . .. and not or #Keyword color=2,word=on,rightall=off,case=on,insidetag=off,regexp=on,rightall2=off [0-9]+ [0-9]+\.[0-9]+ [0-9]+[Ee][+-]?[0-9]+ [0-9]+\.[0-9]+[Ee][+-]?[0-9]+ 0[Xx][0-9A-Fa-f]+ 0[Xx][0-9A-Fa-f]+[Pp][+-]?[0-9]+ 0[Xx][0-9A-Fa-f]+\.[0-9A-Fa-f]+[Pp][+-]?[0-9]+ \[(=*)\[.+\]\1\] ::[A-Za-z_][0-9A-Za-z_]*:: #Keyword color=3,word=on,rightall=off,case=on,insidetag=off,regexp=off,rightall2=off ... __add __call __concat __div __eq __gc __index __le __len __lt __metatable __mod __mode __mul __newindex __pow __sub __tostring __unm _ENV _G _VERSION io.stderr io.stdin io.stdout math.huge math.pi package.config package.cpath package.loaded package.path package.preload package.searchers #Keyword color=4,word=on,rightall=off,case=on,insidetag=off,regexp=off,rightall2=off break do else elseif end false for function goto if in local nil repeat return then true until while #Keyword color=5,word=on,rightall=off,case=on,insidetag=off,regexp=off,rightall2=off assert collectgarbage dofile error getmetatable ipairs loadfile load next pairs pcall print rawequal rawget rawlen rawset require select setmetatable tonumber tostring type xpcall bit32.arshift bit32.band bit32.bnot bit32.bor bit32.btest bit32.bxor bit32.extract bit32.lrotate bit32.lshift bit32.replace bit32.rrotate bit32.rshift coroutine.create coroutine.resume coroutine.running coroutine.status coroutine.wrap coroutine.yield debug.debug debug.getuservalue debug.gethook debug.getinfo debug.getlocal debug.getmetatable debug.getregistry debug.getupvalue debug.setuservalue debug.sethook debug.setlocal debug.setmetatable debug.setupvalue debug.traceback debug.upvalueid debug.upvaluejoin file:close file:flush file:lines file:read file:seek file:setvbuf file:write io.close io.flush io.input io.lines io.open io.output io.popen io.read io.tmpfile io.type io.write math.abs math.acos math.asin math.atan math.atan2 math.ceil math.cos math.cosh math.deg math.exp math.floor math.fmod math.frexp math.ldexp math.log math.max math.min math.modf math.pow math.rad math.random math.randomseed math.sin math.sinh math.sqrt math.tan math.tanh os.clock os.date os.difftime os.execute os.exit os.getenv os.remove os.rename os.setlocale os.time os.tmpname package.loadlib package.searchpath string.byte string.char string.dump string.find string.format string.gmatch string.gsub string.len string.lower string.match string.rep string.reverse string.sub string.upper table.concat table.insert table.pack table.remove table.sort table.unpack #Keyword color=10,word=on,rightall=off,case=on,insidetag=off,regexp=off,rightall2=off ; 5.0 -> 5.1 gcinfo loadlib table.foreach table.foreachi table.getn math.mod string.gfind table.setn ; 5.1 -> 5.2 getfenv loadstring module setfenv unpack debug.getfenv debug.setfenv math.log10 package.loaders package.seeall table.maxn