From c70b2d3145bc6743cf96d943dbfa6812958fbb7d Mon Sep 17 00:00:00 2001 From: sicher Date: Tue, 21 Mar 2017 14:13:38 +0100 Subject: [PATCH] Built in keywords are now listed properly Removed commas and added spaces at the end of each concatenated string so these keywords are recognised as built-ins. --- src/languages/lua.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/languages/lua.js b/src/languages/lua.js index ed44ac046e..2d385237d7 100644 --- a/src/languages/lua.js +++ b/src/languages/lua.js @@ -36,13 +36,13 @@ function(hljs) { 'module next pairs pcall print rawequal rawget rawset require select setfenv' + 'setmetatable tonumber tostring type unpack xpcall arg self' + //Library methods and properties (one line per library): - 'coroutine resume yield status wrap create running debug getupvalue' + - 'debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv' + - 'io lines write close flush open output type read stderr stdin input stdout popen tmpfile' + - 'math, log, max, acos, huge, ldexp, pi, cos, tanh, pow, deg, tan, cosh, sinh, random, randomseed, frexp, ceil, floor, rad, abs, sqrt, modf, asin, min, mod, fmod, log10, atan2, exp, sin, atan' + - 'os, exit, setlocale, date, getenv, difftime, remove, time, clock, tmpname, rename, execute, package, preload, loadlib, loaded, loaders, cpath, config path, seeall' + - 'string, sub, upper, len, gfind, rep, find, match, char, dump, gmatch, reverse, byte, format, gsub, lower' + - 'table, setn, insert, getn, foreachi, maxn, foreach, concat, sort, remove' + 'coroutine resume yield status wrap create running debug getupvalue ' + + 'debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv ' + + 'io lines write close flush open output type read stderr stdin input stdout popen tmpfile ' + + 'math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan ' + + 'os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall ' + + 'string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower ' + + 'table setn insert getn foreachi maxn foreach concat sort remove' }, contains: COMMENTS.concat([ {