Lua 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".
Your Download will start in 5 seconds...
lua52.esy | |
---|---|
File Size | 11 KB |
Date | November 4, 2012 |
Downloads | 1726 |
Version | 1.0 |
License | Freeware |