Richard Smith e257051612 No predeclared identifiers, `Core` is a keyword (#4864) hai 1 ano
..
queries e257051612 No predeclared identifiers, `Core` is a keyword (#4864) hai 1 ano
src 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) hai 1 ano
testdata 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) hai 1 ano
.gitignore 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) hai 1 ano
BUILD 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) hai 1 ano
README.md 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) hai 1 ano
grammar.js 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) hai 1 ano
helix.sh 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) hai 1 ano
test_runner.cpp 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) hai 1 ano

README.md

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

  1. Install tree-sitter and Nodejs.
  2. Install Helix.
  3. Run ./helix.sh

Emacs

TODO