4 ms·
It lacks the syntax highlight. They could have used tree-sitter[1] for parsing, then the online highlight would be easier to implement. [1] https://github.com/
by xvilka 7y ago
It lacks the syntax highlight. They could have used tree-sitter[1] for parsing, then the online highlight would be easier to implement.
[1] https://github.com/tree-sitter/tree-sitter https://github.com/tree-sitter/tree-sitter
- israrkhan 7y agoperhaps you meant to include https://github.com/tree-sitter/tree-sitter https://github.com/tree-sitter/tree-sitter as reference.
- xvilka 7y agoOh, yes, clipboard mistake, thanks for the correction!
- hexagonal-sun 7y agoAgreed, syntax highlighting would be great. I was thinking about something akin to fish's syntax highlighting and completion with the REPL. I'll take a look at tree-sitter. If I get syntax highlighting for free then I'll take that!
- johnisgood 7y ago> Dependency-free so that the runtime library (which is written in pure C) can be embedded in any application What does dependency-free mean? I mean, it does depend on 128 crates. Do we typically not count those? By the way, I did `cargo build` and it failed at `#include "utf8proc.c"`. I have `libutf8proc` installed. Changing `.c` to `.h` solved it. It went past that part, only to get: - error: couldn't read cli/src/../../lib/binding_web/tree-sitter.js: No such file or directory (os error 2) - error: couldn't read cli/src/../../lib/binding_web/tree-sitter.wasm: No such file or directory (os error 2)
- TkTech 7y agoThe generator isn't dependency free, the parser it generates is.