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:
2ff5f76
)
Allow single digit subscripts again.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 9 Dec 2009 10:23:27 +0000
(11:23 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 9 Dec 2009 10:23:27 +0000
(11:23 +0100)
Accidentally got disabled a while back.
pret-lam.lua
patch
|
blob
|
history
diff --git
a/pret-lam.lua
b/pret-lam.lua
index e72bf2c6d6120cd2a612e393751016c81f9dbaa9..88e39246772b02766cd5580312f92f65b3763dca 100644
(file)
--- a/
pret-lam.lua
+++ b/
pret-lam.lua
@@
-209,7
+209,7
@@
function vis.begin_of_display()
if in_block == 0 then
-- Initially allow subscripts using _ or just appending a number (later,
-- we will add extra patterns here.
- submatches = {"^(%a*)_([%a%d,]+)$", "^(%a+)(%d[%d,]
+
)$"}
+ submatches = {"^(%a*)_([%a%d,]+)$", "^(%a+)(%d[%d,]
*
)$"}
-- This stores all the bases we've encountered so far (to prevent
-- duplicates). For each of them there will be a pattern in submatches
-- above.