summaryrefslogtreecommitdiff
path: root/src/parser_combinators.ml
diff options
context:
space:
mode:
authorJessica Clarke2020-09-20 20:21:38 +0100
committerJessica Clarke2020-09-20 20:21:38 +0100
commit43612633c7df7a3c96ae463e402d9a0e2c6e121a (patch)
tree383fc859ad8b7f52ad77d4d847fda248764bb9ec /src/parser_combinators.ml
parentb6fda03e7f40c03b4a89292a4343708105ce9821 (diff)
Improve parsing of saildoc comments
These were only parsed for val specs and scattered clauses, but many other constructs can be meaningfully documented. Moreover, attaching the documentation to the SD_aux rather than the FCL_aux etc inside it is unhelpful since the latter is what the LaTeX backend sees. Instead, push the documentation down into the non-scattered entity within the SD_aux (i.e. the FCL_aux / Tu_aux / MCL_aux) when possible, only leaving it on the SD_aux when they are more like a val spec. This means that the saildoc for scattered function clauses is now emitted, without any changes needed to the LaTeX backend. Also support saildoc on a wider variety of non-scattered constructs, and slightly simplify aspects of the grammar whilst here.
Diffstat (limited to 'src/parser_combinators.ml')
0 files changed, 0 insertions, 0 deletions