If the keys are "identifier-like", then the quotes can be left off
This is hugely more convenient to write. The highlighter already contains a lot of the necessary parsing code, it just needs to learn to recognize bare words ([a-zA-Z_]*), which we'll simply wrap in strings before passing the whole chunk to Jansson like we do now.
Of course, the shell could make use of way more extensions but:
C is the wrong language entirely to build anything of such complexity just for fun, and
fuck terminal UI in general.
Just like in `jq`:
> If the keys are "identifier-like", then the quotes can be left off
This is hugely more convenient to write. The highlighter already contains a lot of the necessary parsing code, it just needs to learn to recognize bare words ([a-zA-Z\_]\*), which we'll simply wrap in strings before passing the whole chunk to Jansson like we do now.
Of course, the shell could make use of way more extensions but:
1. C is the wrong language entirely to build anything of such complexity just for fun, and
2. fuck terminal UI in general.
Just like in
jq
:This is hugely more convenient to write. The highlighter already contains a lot of the necessary parsing code, it just needs to learn to recognize bare words ([a-zA-Z_]*), which we'll simply wrap in strings before passing the whole chunk to Jansson like we do now.
Of course, the shell could make use of way more extensions but: