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 97a53761a9247af6f11d76b4ebe721f431a99967..12fa94ec89c5f2cc6d1b8e5afe6b9358aca29f7a 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]*[%-%+%,]+[%a%d%-%+%,]*)$"
+            submatches[#submatches+1] = "^(" .. base .. ")([%a%d]*[%-%+,]+[%a%d%-%+,]*)$"
         end
     end
     return word