Product Compare › Forums › Multi-Edit › Support › Bug Report – SQL language matching in 9.10.04 and MEW2006 › Reply To: Bug Report – SQL language matching in 9.10.04 and MEW2006
I noticed that there is a _mtchPerlRE set in the LUA language and it looks like LangDoMatch should be able to work with Perl Regular Expressions.
I hacked together a small LUA file from something I found on the internet (I’ve never used this language but the sample seems ok)…
function unm_event (op)
local o = tonumber(op)
if o then — operand is numeric?
return -o — `-‘ here is the primitive `unm’
else — the operand is not numeric.
— Try to get a handler from the operand
local h = metatable(op).__unm
if h then
— call the handler with the operand and nil
return h(op, nil)
else — no handler available: default behavior
I tried using language matching on it in ME 9.10 and 10.0 Beta 3, in both cases, nothing was ever matched and the status line message always reads “No match found”.
Am I putting my energy in a direction that might help with the SQL matching problems I’m experiencing?