X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=pret-lam.lua;fp=pret-lam.lua;h=88e39246772b02766cd5580312f92f65b3763dca;hp=e72bf2c6d6120cd2a612e393751016c81f9dbaa9;hb=7f1ce9c381d0a8d2c47c02c1b998a19f31c725a1;hpb=2ff5f767f17203c764a8ec9ef6711b234c1deb6d diff --git a/pret-lam.lua b/pret-lam.lua index e72bf2c..88e3924 100644 --- 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.