aboutsummaryrefslogtreecommitdiff
path: root/README
blob: c83be3a2364ebe05af2b0263b5ea949ea37af8d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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