aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2018-10-20 15:06:16 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2018-10-20 19:14:17 +0200
commit916db81ade8049ae417350b88bbe08e1a4018c79 (patch)
treefb7f11df9d37e2f0bcfd09dd740b084b19e9d8f7 /benchmark
parent8d4027da4dc698cdb13d143bc542977391f4b49b (diff)
downloadpandoc-916db81ade8049ae417350b88bbe08e1a4018c79.tar.gz
Lua filters: iterate over AST element fields when using `pairs`
This makes it possible to iterate over all field names of an AST element by using a generic `for` loop with `pairs`: for field_name, field_content in pairs(element) do … end Raw table fields of AST elements should be considered an implementation detail and might change in the future. Accessing element properties should always happen through the fields listed in the Lua filter docs. Note that the iterator currently excludes the `t`/`tag` field.
Diffstat (limited to 'benchmark')
0 files changed, 0 insertions, 0 deletions