mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:10:12 +01:00
Small cleanup for code sharing. Note, `*ReadFile` will trigger a CHECK-failure on error; the relevant implementations would previously have failed silently (empty string). --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>
Tree-sitter grammar for Carbon
Tree-sitter is currently used for syntax highlighting in supported editors.
Development
We use a non-hermetic tree-sitter invocation, so it must be installed locally. To install tree-sitter, run:
npm install -g tree-sitter-cli
Editor Installation
Helix
- Install tree-sitter and Nodejs.
- Install Helix.
- Run
./helix.sh
Emacs
TODO