Treesitter parser (#2902)

A push towards better editor support.
See utils/treesitter/README.md

---------

Co-authored-by: josh11b <josh11b@users.noreply.github.com>
This commit is contained in:
mx42
2023-07-13 18:28:28 +00:00
committed by GitHub
co-authored by josh11b
parent 9751b4701d
commit 1cab6920f2
14 changed files with 1022 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
<!--
Part of the Carbon Language project, under the Apache License v2.0 with LLVM
Exceptions. See /LICENSE for license information.
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-->
# Tree-sitter grammar for Carbon
Tree-sitter is currently used for syntax highlighting in supported editors.
## Editor Installation
### Helix
1. Install
[tree-sitter](https://tree-sitter.github.io/tree-sitter/creating-parsers#installation)
and Nodejs.
2. Install [Helix](https://docs.helix-editor.com/install.html).
3. Run `./helix.sh`
### Neovim
TODO
### Emacs
TODO