Fix typo in regex for subscripts.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 26 Nov 2009 22:30:08 +0000 (23:30 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 26 Nov 2009 22:30:08 +0000 (23:30 +0100)
pret-lam.lua

index 97a5376..12fa94e 100644 (file)
@@ -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])$"
             -- 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
         end
     end
     return word