projects
/
matthijs
/
master-project
/
report.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b9665a
)
Fix typo in regex for subscripts.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 26 Nov 2009 22:30:08 +0000
(23:30 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 26 Nov 2009 22:30:08 +0000
(23:30 +0100)
pret-lam.lua
patch
|
blob
|
history
diff --git
a/pret-lam.lua
b/pret-lam.lua
index 97a53761a9247af6f11d76b4ebe721f431a99967..12fa94ec89c5f2cc6d1b8e5afe6b9358aca29f7a 100644
(file)
--- 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