-function buffers.visualizers.lam.begin_of_buffer()
- -- Initially allow subscripts using _ or just appending a number (later,
- -- we will add extra patterns here.
- submatches = {"^(.*)_([%a%d,]+)$", "^(.*[^%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.
- bases = {}
-end
-
-function buffers.visualizers.lam.end_of_buffer()
- -- Reset submatches and bases, since flush_line can be called without
- -- begin / end_of_buffer for \type.
- buffers.visualizers.lam.begin_of_buffer()
- bases = nil
-end
-