X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=pret-lam.lua;h=12fa94ec89c5f2cc6d1b8e5afe6b9358aca29f7a;hp=97a53761a9247af6f11d76b4ebe721f431a99967;hb=bf2b6c6c3729b49e008e8afffdd379f03d603b37;hpb=1b9665a243799137f9b3f2b04e13489ba6f66e5e diff --git a/pret-lam.lua b/pret-lam.lua index 97a5376..12fa94e 100644 --- a/pret-lam.lua +++ b/pret-lam.lua @@ -108,7 +108,7 @@ local function do_subscripts(word) submatches[#submatches+1] = "^(" .. base .. ")([%a%d])$" -- Seconde, the base with a longer prefix that includes at least -- one of +-, (to catch things like ri+1, but not return). - submatches[#submatches+1] = "^(" .. base .. ")([%a%d]*[%-%+%,]+[%a%d%-%+%,]*)$" + submatches[#submatches+1] = "^(" .. base .. ")([%a%d]*[%-%+,]+[%a%d%-%+,]*)$" end end return word