aboutsummaryrefslogtreecommitdiff

tmplt

A hierarchical filetype based on descriptions and a directed acyclic graph.

filetype description

template is an example of this filetype.

For every line,

  • colon, start new topic
  • hyphen and optional spaces, treat as link
  • nothing (i.e. trailing spaces and a nl), skip.
  • dot or other, take literally (as a desc)

Always trim ending spaces

bugs

the possibility that malloc == NULL is pretty much ignored, memory handling is probably lossy, and pointer chasing is inefficient