Changeset View
Changeset View
Standalone View
Standalone View
stand/lua/config.lua
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
local MSG_MODBLACKLIST = "Not loading blacklisted module '%s'" | local MSG_MODBLACKLIST = "Not loading blacklisted module '%s'" | ||||
local MSG_FAILSYN_QUOTE = "Stray quote at position '%d'" | local MSG_FAILSYN_QUOTE = "Stray quote at position '%d'" | ||||
local MSG_FAILSYN_EOLESC = "Stray escape at end of line" | local MSG_FAILSYN_EOLESC = "Stray escape at end of line" | ||||
local MSG_FAILSYN_EOLVAR = "Unescaped $ at end of line" | local MSG_FAILSYN_EOLVAR = "Unescaped $ at end of line" | ||||
local MSG_FAILSYN_BADVAR = "Malformed variable expression at position '%d'" | local MSG_FAILSYN_BADVAR = "Malformed variable expression at position '%d'" | ||||
local MODULEEXPR = '([-%w_]+)' | local MODULEEXPR = '([-%w_]+)' | ||||
local QVALEXPR = '"(.*)"' | local QVALEXPR = '"([^"]*)"' | ||||
local QVALREPL = QVALEXPR:gsub('%%', '%%%%') | local QVALREPL = QVALEXPR:gsub('%%', '%%%%') | ||||
local WORDEXPR = "([-%w%d][-%w%d_.]*)" | local WORDEXPR = "([-%w%d][-%w%d_.]*)" | ||||
local WORDREPL = WORDEXPR:gsub('%%', '%%%%') | local WORDREPL = WORDEXPR:gsub('%%', '%%%%') | ||||
-- Entries that should never make it into the environment; each one should have | -- Entries that should never make it into the environment; each one should have | ||||
-- a documented reason for its existence, and these should all be implementation | -- a documented reason for its existence, and these should all be implementation | ||||
-- details of the config module. | -- details of the config module. | ||||
local loader_env_restricted_table = { | local loader_env_restricted_table = { | ||||
▲ Show 20 Lines • Show All 731 Lines • Show Last 20 Lines |