[filename if not stdin];linenum;startcol;endcol: text
e.g. (numbers made up)
$ cat tests/langs/typst/base.typ | c run -- -j --typ text --typ strings
[...snip...]
62;12;13: In case you missed it, there's a recording on
62;58;62: "http://purview.edu/lts/2023-lee"
i.e., it doesn't print non-text nodes such as #link(, as it currently does:
Kinda blocked, as I'd prefer not vendoring and only using grammars part of the tree-sitter org. Otherwise, it can get pretty painful with updates and keeping things in sync (see HCL support in srgn).
TODO:
aspell
), for which thetext
node type seems most useful[ ] which requires piping into aspell, for which srgn currently doesn't have good support. Probably needs refactoring the crappy
apply
function:https://github.com/alexpovel/srgn/blob/9238fc161ceaf88dd754d71b4fb65393dcee964b/src/main.rs#L568
so its output is something like (command run on commit https://github.com/alexpovel/srgn/commit/47be5f0ed8aab2afb2e9e473ea3eac9ed4607cf3)
e.g. (numbers made up)
i.e., it doesn't print non-
text
nodes such as#link(
, as it currently does:cc @ju6ge