summaryrefslogtreecommitdiff
path: root/context/data/scite/lexers/scite-context-lexer-lua.lua
diff options
context:
space:
mode:
Diffstat (limited to 'context/data/scite/lexers/scite-context-lexer-lua.lua')
-rw-r--r--context/data/scite/lexers/scite-context-lexer-lua.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/context/data/scite/lexers/scite-context-lexer-lua.lua b/context/data/scite/lexers/scite-context-lexer-lua.lua
index 9672e110e..b0297cf83 100644
--- a/context/data/scite/lexers/scite-context-lexer-lua.lua
+++ b/context/data/scite/lexers/scite-context-lexer-lua.lua
@@ -47,15 +47,17 @@ local functions = {
local constants = {
'_G', '_VERSION', '_M', '...', '_ENV',
-- here too
- '__add', '__call', '__concat', '__div', '__eq', '__gc', '__index',
+ '__add', '__call', '__concat', '__div', '__idiv', '__eq', '__gc', '__index',
'__le', '__lt', '__metatable', '__mode', '__mul', '__newindex',
- '__pow', '__sub', '__tostring', '__unm',
+ '__pow', '__sub', '__tostring', '__unm', '__len',
+ '__pairs', '__ipairs',
+ 'NaN',
}
local internals = { -- __
'add', 'call', 'concat', 'div', 'eq', 'gc', 'index',
'le', 'lt', 'metatable', 'mode', 'mul', 'newindex',
- 'pow', 'sub', 'tostring', 'unm',
+ 'pow', 'sub', 'tostring', 'unm', 'len',
}
local depricated = {